Skip to content

Updating deployment job with necessary permissions and id #38

Updating deployment job with necessary permissions and id

Updating deployment job with necessary permissions and id #38

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
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
permissions:

Check failure on line 24 in .github/workflows/deploy.yaml

View workflow run for this annotation

GitHub Actions / GitHub Pages

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yaml (Line: 24, Col: 9): Unexpected value 'permissions'
pages: write
id-token: write
id: deployment
uses: actions/deploy-pages@v4