Add -batch=true flag for publish snapshot&switch

When this flag is set, I add to gpg --no-tty option. So I can use it in cron.