publish: fix script

generated from commit 2dd1e1dbffc16183bd4c8b82470c5da4c2f75664