Files
unpoller/scripts/formula-deploy.sh
David Newhall II 872a3e782c more auto
2019-07-09 00:47:11 -07:00

22 lines
577 B
Bash
Executable File

#!/bin/bash -x
# Deploys a new homebrew formula file to golift/homebrew-tap.
# Requires SSH credentials in ssh-agent to work.
# Run by Travis-CI when a new release is created on GitHub.
source .metadata.sh
make ${BINARY}.rb
git config --global user.email "${BINARY}@auto.releaser"
git config --global user.name "${BINARY}-auto-releaser"
rm -rf homebrew-mugs
git clone git@github.com:golift/homebrew-mugs.git
cp ${BINARY}.rb homebrew-mugs/Formula
pushd homebrew-mugs
git commit -m "Update ${BINARY} on Release: v${VERSION}-${ITERATION}" Formula/${BINARY}.rb
git push
popd