uwhackweek / jupyterbook-template

Template repository for UW Hackweek JupyterBook websites
http://book-template.hackweek.io/
MIT License
9 stars 6 forks source link

Switch to actions/deploy-pages #162

Closed scottyhq closed 5 months ago

scottyhq commented 5 months ago

https://github.com/uwhackweek/splashpage-2024/blob/9e74e5483f0040ffb8e9fdc97625e38971c41ee8/.github/workflows/publish.yml#L39-L60

After we started the template, GitHub released an action to deploy via github actions https://github.com/actions/deploy-pages

I suggest we use that instead of the original peaceiris/actions-gh-pages https://github.com/uwhackweek/jupyterbook-template/blob/47f3e1504f775fb86fbb1867a450ec9216f4c2b0/.github/actions/buildresources/action.yaml#L43-L51

A key advantage is that we wouldn't need to keep track of a separate gh-pages branch. After 'use this template' a user just needs to go under 'Settings' -> 'Pages' and select two options:

Screenshot 2024-05-06 at 2 18 03 PM