Files
blog/.gitea/workflows/build.yml
Pascal Maas a1fb581d21
All checks were successful
Build blog / build (push) Successful in 0s
Add blog template, build script and CI workflow
2026-10-03 14:50:40 +02:00

28 lines
650 B
YAML

# Rebuilds pascal-maas.nl on every push to main.
# Runs on the self-hosted runner next to Gitea; /srv/site is what nginx serves.
name: Build blog
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: linux
defaults:
run:
shell: sh
steps:
- name: Fetch source
run: |
rm -rf src
git clone --depth 1 --branch "${{ gitea.ref_name }}" \
"https://oauth2:${{ gitea.token }}@git.pascal-maas.nl/${{ gitea.repository }}.git" src
- name: Build
run: python3 src/build.py src out
- name: Publish
run: rsync -a --delete out/ /srv/site/