Good day,
I’m trying to build minimalistic wiki engine with middleman and github.
and leverage travis-ci.org to build from my ‘source’ branch to master branch after pull requests gets merged:
https://github.com/digitalnomads/digitalnomads.github.io/tree/source
It seems that travis just doesn’t push to master with my current configuration:
https://travis-ci.org/digitalnomads/digitalnomads.github.io/builds/56010550
here is my current configuration:
---
language: ruby
script: bundle exec middleman build
env:
global:
- GIT_COMMITTER_NAME=digitalnomads
- GIT_COMMITTER_EMAIL=''
- GIT_AUTHOR_NAME=digitalnomads
- GIT_AUTHOR_EMAIL=''
- secure: "byv67D/fUqjszVE2IuzLaku6IlClY1L6/ZPZRVZSvmm4YLHKornLOTBzMCPgOPCxL3wCc0y3L4FocpXaKAJ+TjesHs4aTQEPplTd0GpwTRDT+hVxwB7jzwuTSqsrBLTfJDR4AEMYn9fSRT+9+kNAINe9LnfHbGB2Tyr/vGAip7g"
before_script:
- git clone --quiet https://github.com/digitalnomads/digitalnomads.github.io
- git checkout source
after_success:
- cd build
- git add -A
- git commit -m 'Update'
- '[ "$TRAVIS_BRANCH" == "source" ] && [ $GH_TOKEN ] && git push --quiet https://$GH_TOKEN@github.com/digitalnomads/digitalnomads.github.io.git master 2> /dev/null'
Anyone had experience building static pages with travis-ci? and can share their .travis.yml?