Skip to content

Updating the permissions syntax in the correct deploy job #40

Updating the permissions syntax in the correct deploy job

Updating the permissions syntax in the correct deploy job #40

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout main docs repo
uses: actions/checkout@v4
- name: Setup Docusaurus
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: yarn
- name: Build website
run: |
yarn install --frozen-lockfile
yarn build
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}