Travis update
This commit is contained in:
@ -4,14 +4,17 @@ setup_git() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
commit_website_files() {
|
commit_website_files() {
|
||||||
git checkout master
|
if [[ $(( $TRAVIS_EVENT_TYPE )) != 'pull_request' ]]; then
|
||||||
git add *
|
if [[ $(( $TRAVIS_BRANCH )) != 'master' ]]; then
|
||||||
git commit --message "Travis build: $TRAVIS_BUILD_NUMBER"
|
git checkout master
|
||||||
|
git add *
|
||||||
|
git commit --message "Travis build: $TRAVIS_BUILD_NUMBER"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
upload_files() {
|
upload_files() {
|
||||||
echo "https://${GH_TOKEN}@github.com/Chalarangelo/30-seconds-of-code.git"
|
git push --force --quiet "https://${GH_TOKEN}@github.com/Chalarangelo/30-seconds-of-code.git" master > /dev/null 2>&1
|
||||||
git push --force "https://${GH_TOKEN}@github.com/Chalarangelo/30-seconds-of-code.git" master > /dev/null 2>&1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_git
|
setup_git
|
||||||
|
|||||||
Reference in New Issue
Block a user