publish: deploy script fix

generated from commit a64cc8773eb2e09f4a31e4e552fe636e90d84f5a