WIP 332 Trigger publication workflow but disable by default #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish 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: ${{ publish_site }} | ||
Check failure on line 15 in .github/workflows/publish-site-to-gh-pages.yml GitHub Actions / Publish GitHub PagesInvalid workflow file
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- name: Configure Pages | ||
uses: actions/configure-pages@v5 | ||
- name: Deploy Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |