Skip to content

Commit

Permalink
WIP 332 Trigger publication workflow 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 f597221
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 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-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
10 changes: 9 additions & 1 deletion .github/workflows/publish-site-to-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f597221

Please sign in to comment.