publish: add ga only if deploying

generated from commit d9fd97cbc8d9c58804137849ecef0526d58db0ec