CodeYourFuture / wiki

A centralised resource for all Code Your Future knowledge
https://docs.codeyourfuture.io
3 stars 10 forks source link

Use Github Actions to Deploy Docs #1

Closed ChrisOwen101 closed 4 years ago

ChrisOwen101 commented 4 years ago

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

theashraf commented 4 years ago

I'd like to help with this one.

ChrisOwen101 commented 4 years ago

@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!

ChrisOwen101 commented 4 years ago

@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?

ChrisOwen101 commented 4 years ago

e.g. this commit: https://github.com/CodeYourFuture/wiki/commit/60a3d83ab3f956c155530f5dc329ca8851b2e803

is not appearing here: https://codeyourfuture.github.io/wiki/mentors/education/teaching-tips

ChrisOwen101 commented 4 years ago

@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