diff --git a/.github/workflows/generate-site.yml b/.github/workflows/generate-site.yml index a53d3130..e022bce8 100644 --- a/.github/workflows/generate-site.yml +++ b/.github/workflows/generate-site.yml @@ -73,3 +73,13 @@ jobs: name: github-pages path: public retention-days: 7 + + - name: Trigger Publish to Netlify Workflow + uses: benc-uk/workflow-dispatch@v1 + with: + workflow: publish-site-to-netlify.yml + + - name: Trigger Publish to GitHub Pages Workflow + uses: benc-uk/workflow-dispatch@v1 + with: + workflow: publish-site-to-gh-pages.yml diff --git a/.github/workflows/publish-site-to-gh-pages.yml b/.github/workflows/publish-site-to-gh-pages.yml index 5abcf0b2..519b780d 100644 --- a/.github/workflows/publish-site-to-gh-pages.yml +++ b/.github/workflows/publish-site-to-gh-pages.yml @@ -1,10 +1,18 @@ -name: Publish GitHub Pages +name: Publish Site to GitHub Pages on: + push: + pull_request: workflow_dispatch: + inputs: + publish_site: + type: boolean + description: 'Publish To GH Pages' + default: false jobs: publish-to-github: + if: github.event.inputs.publish_site runs-on: ubuntu-latest permissions: contents: read diff --git a/.github/workflows/publish-to-netlify.yml b/.github/workflows/publish-site-to-netlify.yml similarity index 88% rename from .github/workflows/publish-to-netlify.yml rename to .github/workflows/publish-site-to-netlify.yml index 23ae6fa5..1a342a00 100644 --- a/.github/workflows/publish-to-netlify.yml +++ b/.github/workflows/publish-site-to-netlify.yml @@ -1,10 +1,18 @@ -name: Publish to Netlify +name: Publish Site to Netlify on: + push: + pull_request: workflow_dispatch: + inputs: + publish_site: + type: boolean + description: 'Publish To Netlify' + default: false jobs: publish-to-netlify: + if: github.event.inputs.publish_site runs-on: ubuntu-latest environment: name: netlify