Use Github Actions to Deploy Docs
Closed this issue · 5 comments
To make this as easy as possible for non-tech people to edit I'd like the docs to be published on every commit.
This is the way you commit from a local machine
cd website
npm install
GIT_USER=ChrisOwen101 CURRENT_BRANCH=master USE_SSH=true npm run publish-gh-pages
I don't quite know enough about Github Actions to be able to do this
I'd like to help with this one.
@theashraf Great! You're welcome to fork this repository to get it working on your own repo, then make a PR back to this one to merge it back! Thanks you so much!
@theashraf From the logs it looks like it's working but when I make a change I'm not seeing it deploy to the website. Any ideas?
e.g. this commit:
60a3d83
is not appearing here:
https://codeyourfuture.github.io/wiki/mentors/education/teaching-tips
@theashraf Fixed it!
For future reference, this was the problem :)
https://stackoverflow.com/questions/58903378/github-action-bot-pushing-to-gh-pages-causes-page-build-to-fail