Some checks failed
Build slides / build (push) Failing after 1m5s
Adds .forgejo/workflows/build-slides.yml triggering on push to main and manual dispatch. Job runs in node:20-bookworm-slim, installs marp-cli + python3, mounts /srv/slides/html into /output, and invokes build-slides.sh with OUTPUT_DIR=/output. build-slides.sh now honors OUTPUT_DIR/SLIDES_TITLE/REPO_WEB_URL env overrides (defaults preserve local-dev behavior), wipes stale .html before each build, and regenerates a styled index.html listing every deck — replacing the equivalent logic from the old webhook update.sh. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
29 lines
633 B
YAML
29 lines
633 B
YAML
name: Build slides
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: self-hosted
|
|
container:
|
|
image: node:20-bookworm-slim
|
|
volumes:
|
|
- /srv/slides/html:/output
|
|
env:
|
|
OUTPUT_DIR: /output
|
|
steps:
|
|
- name: Install build dependencies
|
|
run: |
|
|
set -e
|
|
apt-get update -qq
|
|
apt-get install -y --no-install-recommends git python3 ca-certificates
|
|
npm install -g @marp-team/marp-cli
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build slides into /output
|
|
run: bash build-slides.sh
|