-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Pages deployment actions.
Deploy uploaded artifacts to GitHub Pages.
- Loading branch information
1 parent
dd24c6f
commit 43c5e24
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
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' }} | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |