25 lines
		
	
	
		
			746 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			746 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
#!/bin/bash -x
 | 
						|
 | 
						|
# Deploys a new homebrew formula file to a github homebrew formula repo: $HBREPO
 | 
						|
# Requires SSH credentials in ssh-agent to work.
 | 
						|
# Run by Travis-CI when a new release is created on GitHub.
 | 
						|
# Do not edit this file. It's part of application-builder.
 | 
						|
# https://github.com/golift/application-builder
 | 
						|
 | 
						|
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_release_repo
 | 
						|
git clone git@github.com:${HBREPO}.git homebrew_release_repo
 | 
						|
 | 
						|
cp ${BINARY}.rb homebrew_release_repo/Formula
 | 
						|
pushd homebrew_release_repo
 | 
						|
git add Formula/${BINARY}.rb
 | 
						|
git commit -m "Update ${BINARY} on Release: v${VERSION}-${ITERATION}"
 | 
						|
git push
 | 
						|
popd
 |