publish: moving script to eof

generated from commit cc7ae87ac8e22b1f2864e67d013075e2cd1e65b0