Refactor code structure for improved readability and maintainability
Some checks failed
/ serve (push) Failing after 47s
Some checks failed
/ serve (push) Failing after 47s
This commit is contained in:
parent
7ea0ad923c
commit
71b8630862
7 changed files with 1378 additions and 25 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue