Skip to content

Add GitHub Pages deployment actions. #1

Add GitHub Pages deployment actions.

Add GitHub Pages deployment actions. #1

Workflow file for this run

---
name: Deploy to GitHub Pages
on:
push:
# NOTE: As of 2024-08-15, this event will only trigger a workflow run if
# the workflow file is on the default branch.
# This is our desired behavior but if this default ever changes we may need
# to add additional guard clauses to make sure we are only deploying
# artifacts from the main branch.
#
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#workflow_run
workflow_run:
workflows: ['CI']
types: ['completed']
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
permissions:
contents: read
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
if: ${{ github_event.workflow_run.conclusion == 'success' }}

Check failure on line 29 in .github/workflows/pages-deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy to GitHub Pages

Invalid workflow file

The workflow is not valid. .github/workflows/pages-deploy.yml (Line: 29, Col: 9): Unrecognized named-value: 'github_event'. Located at position 1 within expression: github_event.workflow_run.conclusion == 'success'
runs-on: ubuntu-22.04
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4