cours4.0/.forgejo/workflows/serve.yaml
2025-05-22 20:31:24 +02:00

29 lines
No EOL
768 B
YAML

on:
push:
tags:
- 'v*'
jobs:
serve:
runs-on: myst
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: "true"
token: ${{ secrets.FORGEJO_TOKEN }}
- name: Execute code
run: uv run myst build --execute
- name: Build PDF exports
run: uv run myst build --execute --pdf
- name: Build static HTML
run: |
uv run myst build --execute --html
mkdir -p /tmp/release
cd _build/html
zip -r /tmp/release/html.zip .
- name: Make release
uses: actions/forgejo-release@v2.6.0
with:
direction: upload
release-dir: /tmp/release
token: ${{ secrets.FORGEJO_TOKEN }}