Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure travis to update gitbook in gh-pages branch #1

Open
teles opened this issue Jan 18, 2017 · 0 comments
Open

Configure travis to update gitbook in gh-pages branch #1

teles opened this issue Jan 18, 2017 · 0 comments

Comments

@teles
Copy link
Member

teles commented Jan 18, 2017

🎉 Github pages for FrontPress documentation is already working.

But there is a problem. I made the gh-pages manually by myself. Would be nice to configure travis to build the gh-pages. Travis script should be something like this:

  • Make sure travis install gitbook-cli
rm .gitignore
gitbook serve
mv _book/* .
git add -A .
git commit -m "Update gh-pages"
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1 
# above command got from here https://gist.github.com/domenic/ec8b0fc8ab45f39403dd

This script will run after any new master update.

Nice to have: @frontpressbot could be the author from these build commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant