Skip to content

Instantly share code, notes, and snippets.

@garystafford

garystafford/build_v2.sh

Last active Sep 8, 2016
Embed
What would you like to do?
#!/bin/bash
set -e
cd build/distributions
git init
git config user.name "travis-ci"
git config user.email "${COMMIT_AUTHOR_EMAIL}"
git add .
git commit -m "Deploy Travis CI Build #${TRAVIS_BUILD_NUMBER} artifacts to GitHub"
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:build-artifacts > /dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment