2018-02-13 20:27:17 +00:00
|
|
|
#!/bin/bash
|
2018-02-12 21:50:49 +00:00
|
|
|
|
|
|
|
setup_git() {
|
|
|
|
git config --global user.email "travis@travis-ci.org"
|
|
|
|
git config --global user.name "Travis CI"
|
|
|
|
}
|
|
|
|
|
|
|
|
commit_files() {
|
|
|
|
git checkout master
|
|
|
|
git add .
|
|
|
|
git commit --message "Travis build: $TRAVIS_BUILD_NUMBER"
|
|
|
|
}
|
|
|
|
|
|
|
|
upload_files() {
|
2018-02-12 22:10:54 +00:00
|
|
|
git remote add origin-master https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git > /dev/null 2>&1
|
2018-02-12 21:50:49 +00:00
|
|
|
git push --quiet --set-upstream origin-master master
|
|
|
|
}
|
|
|
|
|
|
|
|
setup_git
|
|
|
|
commit_files
|
|
|
|
upload_files
|