Skip to content

Allow testing build manually on main branch #82

Allow testing build manually on main branch

Allow testing build manually on main branch #82

Workflow file for this run

name: Deploy
on:
pull_request:
push:
branches: ["main"]
workflow_dispatch:
inputs:
deploy:
required: false
default: true
description: "Whether to deploy the site. If true then build the site and deploy it. If false then just test that the site build's successfully but don't deploy anything."
type: boolean
jobs:
Deploy:
uses: seanh/pelican/.github/workflows/github_pages.yml@pelican_decouple_build_workflow-single-file
permissions:
contents: read
pages: write
id-token: write
with:
settings: "publishconf.py"
requirements: "pelican[markdown] typogrify"
theme: "https://github.com/seanh/sidecar.git"
deploy: ${{ (github.event_name == 'workflow_dispatch' && inputs.deploy) or (github.event_name == 'push' && github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}

Check failure on line 24 in .github/workflows/pelican.yml

View workflow run for this annotation

GitHub Actions / Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/pelican.yml (Line: 24, Col: 15): Unexpected symbol: 'or'. Located at position 61 within expression: (github.event_name == 'workflow_dispatch' && inputs.deploy) or (github.event_name == 'push' && github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch