2025-02-09 18:48:51 +01:00
|
|
|
on:
|
|
|
|
push:
|
2025-05-05 22:28:15 +02:00
|
|
|
tags:
|
|
|
|
- 'v*'
|
2025-02-09 18:20:23 +01:00
|
|
|
jobs:
|
2025-02-10 17:59:02 +01:00
|
|
|
serve:
|
2025-05-08 20:22:35 +02:00
|
|
|
runs-on: myst
|
2025-02-09 18:20:23 +01:00
|
|
|
steps:
|
2025-02-09 19:06:08 +01:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
2025-02-28 13:21:14 +01:00
|
|
|
with:
|
|
|
|
submodules: "true"
|
2025-05-22 20:31:24 +02:00
|
|
|
token: ${{ secrets.FORGEJO_TOKEN }}
|
2025-02-28 13:29:43 +01:00
|
|
|
- name: Execute code
|
2025-05-05 16:48:54 +02:00
|
|
|
run: uv run myst build --execute
|
2025-02-28 12:57:28 +01:00
|
|
|
- name: Build PDF exports
|
2025-05-05 16:48:54 +02:00
|
|
|
run: uv run myst build --execute --pdf
|
2025-02-09 18:58:40 +01:00
|
|
|
- name: Build static HTML
|
2025-05-05 22:33:51 +02:00
|
|
|
run: |
|
|
|
|
uv run myst build --execute --html
|
|
|
|
mkdir -p /tmp/release
|
2025-05-05 22:39:15 +02:00
|
|
|
cd _build/html
|
|
|
|
zip -r /tmp/release/html.zip .
|
2025-05-05 22:21:57 +02:00
|
|
|
- name: Make release
|
|
|
|
uses: actions/forgejo-release@v2.6.0
|
|
|
|
with:
|
|
|
|
direction: upload
|
2025-05-05 22:33:51 +02:00
|
|
|
release-dir: /tmp/release
|
2025-05-05 22:21:57 +02:00
|
|
|
token: ${{ secrets.FORGEJO_TOKEN }}
|