Skip to content

Deploy to GitHub Pages #3

Deploy to GitHub Pages

Deploy to GitHub Pages #3

Workflow file for this run

name: Deploy to GitHub Pages
on:
workflow_run:
workflows: ["CI"]
types: [completed]
branches: [ main ]
# Prevent multiple deploy runs
concurrency:
group: deploy-${{ github.ref }}
cancel-in-progress: false
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
# Only deploy if CI workflow completed successfully
if: github.event.workflow_run.conclusion == 'success'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4