Skip to content

Deploy the catalog

Deploy the catalog #11

Workflow file for this run

name: Deploy the catalog
on:
push:
branches:
- main
workflow_dispatch:
release:
types:
- published
# 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.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: typst-community/setup-typst@v4
with:
typst-version: v0.14.0
- uses: actions/configure-pages@v5
- run: python scripts/build_catalog.py
env:
GH_TOKEN: ${{ github.token }} # Required by gh
RELEASE_EVENT: ${{ toJson(github.event.release) }} # Circumvent API delay
- uses: actions/upload-pages-artifact@v3
with:
path: ./dist
deploy:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/deploy-pages@v4
id: deployment