2019-01-07 16:42:30 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Push output back to GitHub
|
|
|
|
|
2019-01-07 17:01:12 +00:00
|
|
|
|
2019-01-07 16:42:30 +00:00
|
|
|
cd output || exit 1
|
|
|
|
|
2019-01-07 17:01:12 +00:00
|
|
|
git config --global user.email "travis@travis-ci.org" || exit 1
|
|
|
|
|
|
|
|
git config --global user.name "Travis CI" || exit 1
|
|
|
|
|
2019-01-07 17:08:25 +00:00
|
|
|
git add -A . || exit 1
|
2019-01-07 16:42:30 +00:00
|
|
|
|
|
|
|
git commit --message "Travis build: $TRAVIS_BUILD_NUMBER" || exit 1
|
|
|
|
|
2019-01-07 17:01:12 +00:00
|
|
|
git remote add deploy "https://$GH_TOKEN@github.com/Jermolene/Testing2019.git" &>/dev/null || exit 1
|
|
|
|
|
|
|
|
git push deploy master &>/dev/null || exit 1
|
2019-01-07 16:42:30 +00:00
|
|
|
|
|
|
|
cd .. || exit 1
|