Update formula-deploy.sh

This commit is contained in:
David Newhall II 2019-06-23 02:13:36 -07:00 committed by GitHub
parent bc446ad764
commit 890ee0865e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,8 @@
#!/bin/bash
# Deploys a new unifi-poller.rb formula file to golift/homebrew-tap.
# Deploys a new unifi-poller.rb 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.
make unifi-poller.rb
VERSION=$(grep -E '^\s*version\s*"' unifi-poller.rb | cut -d\" -f 2)
@ -12,8 +14,6 @@ git clone git@github.com:golift/homebrew-mugs.git
cp unifi-poller.rb homebrew-mugs/Formula
pushd homebrew-mugs
echo "Showing diff:"
git diff
git commit -m "Update unifi-poller on Release: v${VERSION}" Formula/unifi-poller.rb
git push
popd