Skip to content

WIP 332 Trigger publication workflow but disable by default #1

WIP 332 Trigger publication workflow but disable by default

WIP 332 Trigger publication workflow but disable by default #1

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

View workflow run for this annotation

GitHub Actions / Publish GitHub Pages

Invalid workflow file

The workflow is not valid. .github/workflows/publish-site-to-gh-pages.yml (Line: 15, Col: 9): Unrecognized named-value: 'publish_site'. Located at position 1 within expression: publish_site
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