Files
docs-public/.gitea/workflows/deploy.yaml
wompmacho 748b4149bd
Some checks failed
deploy-docs / build-and-deploy (push) Has been cancelled
Initial commit: setup public docs and pipeline
2026-03-24 23:03:18 +00:00

24 lines
625 B
YAML

name: deploy-docs
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: self-hosted
steps:
- name: Checkout Docs Source
uses: actions/checkout@v4
- name: Sync Markdown to Hugo Content
run: |
# Sync only the markdown files and assets to the Hugo content folder
# Exclude the .gitea directory
rsync -av --delete --exclude '.gitea' --exclude '.git' ./ /srv/dev/hugo/wiki/content/
- name: Build Hugo Site
run: |
cd /srv/dev/hugo/wiki
/usr/bin/hugo --destination /srv/caddy/sites/wiki --cleanDestinationDir