Compare commits
44
Commits
main
...
4ba1f4be21
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ba1f4be21 | ||
|
|
fbba5cb734 | ||
|
|
816bbe5be4 | ||
|
|
9b5cd7396e | ||
|
|
4a4c1419ec | ||
|
|
704a35548c | ||
|
|
5a4c6e2c88 | ||
|
|
0b6ac92f16 | ||
|
|
ca3f7cebca | ||
|
|
958b779983 | ||
|
|
d673f9a6aa | ||
|
|
9d6417cda2 | ||
|
|
1e9247a843 | ||
|
|
6f7bc91166 | ||
|
|
af73b39fb0 | ||
|
|
6866cba5d3 | ||
|
|
3c01d706d8 | ||
|
|
4ceb357291 | ||
|
|
6f37163a7b | ||
|
|
4d56663b96 | ||
|
|
206688ab77 | ||
|
|
205eec7358 | ||
|
|
9691ada4f1 | ||
|
|
b211836136 | ||
|
|
35ccefcd4d | ||
|
|
aed4fac3c3 | ||
|
|
69b8ac4591 | ||
|
|
0b44d28484 | ||
|
|
f049f3a277 | ||
|
|
9b4115aafc | ||
|
|
d4109f9d8d | ||
|
|
eaa9edf1b4 | ||
|
|
e31dd7789c | ||
|
|
cfe5fe6eca | ||
|
|
94403b660f | ||
|
|
0b7f66351f | ||
|
|
2aa82a9317 | ||
|
|
adaf390009 | ||
|
|
ca5297b78f | ||
|
|
e9df4a3814 | ||
|
|
e3711ae850 | ||
|
|
e72f5c4231 | ||
|
|
be753dbb4c | ||
|
|
40ca8eaf0a |
@@ -0,0 +1,61 @@
|
|||||||
|
name: Build Notes Site
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: node:20-bookworm # Node for checkout
|
||||||
|
|
||||||
|
steps:
|
||||||
|
# 1️⃣ Checkout repository
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
# 2️⃣ Install Python for MkDocs build
|
||||||
|
- name: Install Python
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y python3 python3-venv python3-pip
|
||||||
|
|
||||||
|
# 3️⃣ List repo files (debug)
|
||||||
|
- name: List repo files
|
||||||
|
run: ls -R "${{ github.workspace }}"
|
||||||
|
|
||||||
|
# 4️⃣ Build MkDocs site locally
|
||||||
|
- name: Build MkDocs site
|
||||||
|
run: |
|
||||||
|
python3 -m venv .venv
|
||||||
|
.venv/bin/pip install --upgrade pip
|
||||||
|
.venv/bin/pip install -r ci/mkdocs/requirements.txt
|
||||||
|
.venv/bin/mkdocs build --clean --site-dir site_output
|
||||||
|
|
||||||
|
# 5️⃣ Install Docker CLI so we can copy to volume
|
||||||
|
- name: Install Docker CLI
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y ca-certificates curl gnupg lsb-release
|
||||||
|
install -m 0755 -d /etc/apt/keyrings
|
||||||
|
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||||
|
chmod a+r /etc/apt/keyrings/docker.gpg
|
||||||
|
echo \
|
||||||
|
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \
|
||||||
|
https://download.docker.com/linux/debian $(lsb_release -cs) stable" | \
|
||||||
|
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y docker-ce-cli
|
||||||
|
|
||||||
|
# 6️⃣ Copy the site output into notes_public Docker volume
|
||||||
|
- name: Copy site to notes_public volume
|
||||||
|
run: |
|
||||||
|
docker run --rm \
|
||||||
|
-v notes_public:/public \
|
||||||
|
-v "${{ github.workspace }}/site_output:/tmp/site" \
|
||||||
|
alpine sh -c "cp -r /tmp/site/* /public/"
|
||||||
|
|
||||||
|
# 7️⃣ Optional: Verify files in volume
|
||||||
|
- name: List notes_public volume
|
||||||
|
run: |
|
||||||
|
docker run --rm -v notes_public:/data alpine ls -la /data
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
FROM python:3.13-slim
|
||||||
|
|
||||||
|
WORKDIR /work
|
||||||
|
|
||||||
|
COPY requirements.txt /tmp/requirements.txt
|
||||||
|
|
||||||
|
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
mkdocs==1.6.1
|
||||||
|
mkdocs-material==9.7.3
|
||||||
|
pymdown-extensions==10.21
|
||||||
Reference in New Issue
Block a user