publish: fix small bug in build process

generated from commit 83f3c8da246d21ab04fa7b6a569c75bb17fdadb4