I am a little bit lost with jekyll, github and travis …
I developp my website on my own machine and I deploy it on github (gh-pages).
As most of plugins are disabled on github, a guy suggested to use travis ci.
I created an account on travis ci
I created a file, .travis.yml, on my machine
I wrote this:
script: bundle exec jekyll build
- chmod 777 deploy.sh
I created a token in github for travis
I past this token in my travis desktop > myrepository > setting > environment variable
I named it GH_TOKEN
I created and filled deploy.sh:
git config user.name “Travis CI”
git config user.email “email@example.com”
git add --all
git commit --message “Auto deploy from Travis CI build $TRAVIS_BUILD_NUMBER”
git remote add deploy https://$GH_TOKEN@github.com/my_name/my_repository.github.io.git >/dev/null 2>&1
git push --force deploy gh-pages >/dev/null 2>&1
I made a modification in my website on my machine
I deployed with the following commands:
git add .
git commit -m “version x.y.z”
git push origin gh-pages
on my travis desktop, for my repository: nil !
I have the message “no buils for this repository”
why Travis didn’t receive data ?
what is missing in my procedure ?
I also tried:
trigger custom build with branch=gh-pages
My request was rejected
In the requests menu, I have for each line:
github pages branch not included via configuration