Start deployment of formula

This commit is contained in:
unifi-poller-bot
2019-06-12 17:30:38 -07:00
committed by David Newhall II
parent ff32ed4b02
commit 00db2fb6de
4 changed files with 36 additions and 13 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
# Deploys a new unifi-poller.rb formula file to golift/homebrew-tap.
make unifi-poller.rb
VERSION=$(grep '^\s*version\s*"' unifi-poller.rb | cut -d\" -f 2)
git config user.name "unifi-poller-bot"
git config user.email "unifi@poller.bot"
rm -rf homebrew-repo
git clone https://$GITHUB_API_KEY@github.com/golift/homebrew-repo.git
cp unifi-poller.rb homebrew-repo/Formula
pushd homebrew-repo
echo "Showing diff:"
git diff
git commit -m "Update unifi-poller on Release: v${VERSION}" Formula/unifi-poller.rb
#git push
popd