mirror of
https://github.com/unpoller/unpoller.git
synced 2026-10-22 05:09:10 +02:00
Start deployment of formula
This commit is contained in:
committed by
David Newhall II
parent
ff32ed4b02
commit
00db2fb6de
Executable
+20
@@ -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
|
||||
Reference in New Issue
Block a user