Skip to content

build(deps): bump actions/deploy-pages from 4 to 5 #78

build(deps): bump actions/deploy-pages from 4 to 5

build(deps): bump actions/deploy-pages from 4 to 5 #78

Workflow file for this run

name: Deploy Qter site
on:
push:
branches:
- main
paths:
- media/paper/**
- docs/**
- .github/workflows/deploy.yml
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
contents: write
pages: write
id-token: write
jobs:
render-docs:
name: Render documentation
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Shiroa
uses: baptiste0928/cargo-install@v3
with:
crate: shiroa
git: https://github.com/Myriad-Dreamin/shiroa
- name: Compile documentation
run: shiroa build docs --mode static-html
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: docs
path: docs/dist
render-paper:
name: Render paper PDF
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Typst
uses: typst-community/setup-typst@v5
- name: Compile document
run: typst compile paper/paper.typ
working-directory: media
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: paper
path: media/paper/paper.pdf
deploy:
name: Deploy site
needs: [render-paper, render-docs]
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Create web root
run: mkdir www
- name: Download docs artifact
uses: actions/download-artifact@v8
with:
name: docs
path: www
- name: Download paper artifact
uses: actions/download-artifact@v8
with:
name: paper
path: www
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v4
with:
path: www
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5