Skip to content

fix: update deploy job permission #5

fix: update deploy job permission

fix: update deploy job permission #5

Workflow file for this run

name: Deploy Documentation
on:
push:
branches:
- preview-v2-docs
workflow_dispatch:
jobs:
compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: typst-community/setup-typst@v3
- run: typst compile ./docs/docs.typ --root ./
- uses: actions/upload-artifact@v4
with:
name: docs
path: ./docs/docs.pdf
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
needs: compile
steps:
- uses: actions/download-artifact@v4
with:
name: docs
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
force_orphan: true