SlyAceZeta / Ribbons.Guide

Keep track of your Pokémon's Ribbons!
https://ribbons.guide/
GNU General Public License v3.0
23 stars 2 forks source link

Create GitHub Actions workflow to publish site on Pages #39

Closed SlyAceZeta closed 1 year ago

SlyAceZeta commented 1 year ago

Currently, the GitHub Pages site is re-published every time a commit occurs on the main branch and it only publishes the site as is. Instead, create a workflow as follows:

The action should halt if any step fails, but this order of steps ensures that any successful steps before halting won't mess things up.

I have no idea what's possible in Actions, all of this will need research, but it would be an improvement over the current auto system.

SlyAceZeta commented 1 year ago

Awesome, after 9f78c31 was committed the last auto-run occurred, then I changed the settings to only publish through Actions and committed a82720f and it did not auto-run. Important first step is accomplished: the auto-run no longer occurs. Now everything else needs to get set up.

SlyAceZeta commented 1 year ago

Closed by 0f38aa3

GitHub Pages will now deploy itself when data/changelog.js is updated on the main branch or when the action is manually run. Webhooks can be added later as requested/needed.