publish: fix small bug in build process

generated from commit 10c705d205369f80bfc9af4c146476c5b203be4a