Skip to content

Commit

Permalink
WIP 332 Trigger publication but disable by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Aug 15, 2024
1 parent 82ef310 commit 673fb9c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/generate-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-to-netlify.yml

- name: Trigger Publish to GitHub Pages Workflow
uses: benc-uk/workflow-dispatch@v1
with:
workflow: publish-site-to-gh-pages.yml
6 changes: 6 additions & 0 deletions .github/workflows/publish-site-to-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ name: Publish GitHub Pages

on:
workflow_dispatch:
inputs:
publish_site:
type: boolean
description: 'Publish To GH Pages'
default: false

jobs:
publish-to-github:
if: ${{ publish_site }}
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/publish-to-netlify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ name: Publish to Netlify

on:
workflow_dispatch:
inputs:
publish_site:
type: boolean
description: 'Publish To Netlify'
default: false

jobs:
publish-to-netlify:
if: ${{ publish_site }}
runs-on: ubuntu-latest
environment:
name: netlify
Expand Down

0 comments on commit 673fb9c

Please sign in to comment.