1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 02:19:55 +00:00

CI: Attempt to pull pages branch from GitHub before the build, and push afterwards

Using a testing repository for now
This commit is contained in:
Jermolene 2019-01-07 16:29:42 +00:00
parent 58f7e7bd85
commit 1d9c932e16

View File

@ -13,7 +13,20 @@ jobs:
- stage: build
script:
- npm --force install tiddlywiki
- export TW5_BUILD_DETAILS="$TRAVIS_BRANCH-$(git rev-parse HEAD) from $(git remote get-url origin)"
- pwd
- cd output
- git init
- git config --global user.email "travis@travis-ci.org"
- git config --global user.name "Travis CI"
- git remote add upstream "https://$GH_TOKEN@github.com/Jermolene/Testing2019.git"
- git fetch upstream
- git reset upstream/master
- cd ..
- export TW5_BUILD_DETAILS="Built from branch '$TRAVIS_BRANCH' at commit $(git rev-parse HEAD) of $(git remote get-url origin)"
- export TW5_BUILD_TIDDLYWIKI='./node_modules/tiddlywiki/tiddlywiki.js'
- ./bin/build-site.sh
- ./bin/deploy-site.sh
- cd output
- git add -A .
- git commit --message "Travis build: $TRAVIS_BUILD_NUMBER"
- git push -q upstream HEAD:master >/dev/null 2>&1
- cd ..