33 lines
837 B
YAML
33 lines
837 B
YAML
name: Build Notes Site
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
# Bigger container: Ubuntu with Python preinstalled
|
|
image: ubuntu:22.04
|
|
steps:
|
|
# 1️⃣ Checkout the repository
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
# 2️⃣ Install Python, pip, and MkDocs
|
|
- name: Setup Python and MkDocs
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y python3 python3-pip git curl
|
|
pip3 install --upgrade pip
|
|
pip3 install mkdocs mkdocs-material pymdown-extensions
|
|
|
|
# 3️⃣ Build MkDocs site to /public (mapped to Docker volume)
|
|
- name: Build MkDocs
|
|
run: mkdocs build --site-dir /public
|
|
|
|
# 4️⃣ Verify output
|
|
- name: Verify output
|
|
run: ls -l /public
|