Skip to content

Deploy Documentation #29

Deploy Documentation

Deploy Documentation #29

Workflow file for this run

name: Deploy Documentation
on:
push:
branches:
- main
workflow_dispatch:
jobs:
compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fontist/setup-fontist@v2
- run: fontist install "Roboto"
- run: fontist install "Source Sans 3"
- uses: typst-community/setup-typst@v3
- run: typst compile ./docs/docs.typ --root ./ --font-path /home/runner/.fontist/fonts
- uses: actions/upload-artifact@v4
with:
name: docs
path: ./docs/docs.pdf
release:
runs-on: ubuntu-latest
needs: compile
steps:
- uses: actions/download-artifact@v4
with:
name: docs
- uses: softprops/action-gh-release@v2
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
files: ./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@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
force_orphan: true