publish: adding build script

generated from commit 772ac57f1dacd2e3da751926009a0b531887a5da