concepts/.forgejo/workflows/sitebuild.yml
Stephan Heunis ca950a2cca
All checks were successful
Build and deploy website / Build docs and deploy (push) Successful in 5m43s
add forgejo workflow for site build and deploy via git-pages
2026-11-16 22:42:19 +02:00

34 lines
928 B
YAML

name: Build and deploy website
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
name: Build docs and deploy
runs-on: debian-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install hatch
run: uv tool install hatch
- name: Build
# this is building a branch specific site
# when multiple branches/versions are maintained concurrently
# we likely need to build all of them and do a joint upload
run: |
hatch run docs:build
mv ./build/mkdocs-site ./build/upload
- name: Deploy
uses: actions/git-pages@v2
with:
# temporary test domain
site: https://concepts.triplesea.nl/
server: hub.psychoinformatics.de
token: ${{ forgejo.token }}
source: ./build/upload/