36 lines
1013 B
YAML
36 lines
1013 B
YAML
name: Build Notes Site
|
||
|
||
on:
|
||
push:
|
||
branches: [ main ]
|
||
|
||
jobs:
|
||
build:
|
||
runs-on: ubuntu-latest
|
||
container:
|
||
image: squidfunk/mkdocs-material:latest # includes Python, pip, MkDocs Material
|
||
steps:
|
||
# 1️⃣ Checkout the repository
|
||
- name: Checkout repository
|
||
uses: actions/checkout@v4
|
||
|
||
# 2️⃣ Optional: Install Node (only if you add JS plugins later)
|
||
# - name: Install Node.js
|
||
# run: |
|
||
# curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
||
# apt-get install -y nodejs
|
||
|
||
# 3️⃣ Install any Python dependencies (optional if you have extra plugins)
|
||
- name: Install Python dependencies
|
||
run: |
|
||
pip install -r requirements.txt || echo "No requirements.txt found, skipping"
|
||
|
||
# 4️⃣ Build the MkDocs site
|
||
- name: Build MkDocs site
|
||
run: |
|
||
mkdocs build --site-dir /public
|
||
|
||
# 5️⃣ List files to verify build
|
||
- name: Verify output
|
||
run: ls -l /public
|