Refactor code structure for improved readability and maintainability
Some checks failed
/ serve (push) Failing after 47s

This commit is contained in:
Edgar P. Burkhart 2025-05-05 16:48:54 +02:00
parent 7ea0ad923c
commit 71b8630862
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
7 changed files with 1378 additions and 25 deletions

View file

@ -4,29 +4,20 @@ on:
- "main"
jobs:
serve:
runs-on: self-hosted
runs-on: uv
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: "true"
- name: Initialize virtual environment
run: /usr/bin/python -m venv .venv
- name: Install dependencies
run: ./.venv/bin/pip install -r requirements.txt
- name: Execute code
run: |
. .venv/bin/activate
myst build --execute
run: uv run myst build --execute
- name: Build PDF exports
run: |
. .venv/bin/activate
myst build --execute --pdf
run: uv run myst build --execute --pdf
- name: Build static HTML
run: |
. .venv/bin/activate
myst build --execute --html
run: uv run myst build --execute --html
- name: Copy files
run: |
rm -rf /data/srv/forgejo-runner/cours4.0
cp -r _build/html /data/srv/forgejo-runner/cours4.0
uses: actions/upload-artifact@v4
with:
name: srv
path: _build/html