19 lines
		
	
	
		
			629 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			629 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
| #!/bin/bash
 | |
| 
 | |
| # 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+url\s+"' unifi-poller.rb | cut -d/ -f7 | cut -d. -f1,2,3)
 | |
| rm -rf homebrew-mugs
 | |
| git config --global user.email "unifi@auto.releaser"
 | |
| git config --global user.name "unifi-auto-releaser"
 | |
| git clone git@github.com:golift/homebrew-mugs.git
 | |
| 
 | |
| cp unifi-poller.rb homebrew-mugs/Formula
 | |
| pushd homebrew-mugs/Formula
 | |
| git commit -m "Update unifi-poller on Release: ${VERSION}" unifi-poller.rb
 | |
| git push
 | |
| popd
 |