Using dynamically-generated artifact number for publishing