Files
notes/.gitea/workflows/deploy.yaml
Workflow config file is invalid. Please check your config file: yaml: line 12: did not find expected key
2026-03-03 10:47:04 +00:00

46 lines
1.3 KiB
YAML

name: Build Notes Site
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: node:20-bookworm
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Docker CLI
run: |
apt-get update
apt-get install -y ca-certificates curl gnupg
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 \
bookworm stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install -y docker-ce-cli
- name: Build docker image
run: |
docker build -t mkdocs-builder -f ci/mkdocs/Dockerfile ci/mkdocs
- name: Build MKDocs output into shared volume
run: |
docker run --rm \
-v "$PWD:/work" -w /work \
-v notes_public:/public \
mkdocs-builder \
mkdocs build --clean --site-dir /public