Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/publish-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ on:
# Allow running this workflow manually from the Actions tab.
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
permissions: {}

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
Expand All @@ -28,6 +24,10 @@ jobs:

name: "Build the website"
runs-on: ubuntu-latest

permissions:
contents: read # to read the contents of the repo

steps:
# By default use the `gh-pages` branch.
# For testing changes to the workflow or the scripts, use the PR branch
Expand Down Expand Up @@ -84,6 +84,10 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down