29 lines
No EOL
768 B
YAML
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 }} |