From 748b4149bd7789b41b71fcd15c5b76299e0b0b89 Mon Sep 17 00:00:00 2001 From: wompmacho Date: Tue, 24 Mar 2026 23:03:18 +0000 Subject: [PATCH] Initial commit: setup public docs and pipeline --- .gitea/workflows/deploy.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..7e63ce2 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,23 @@ +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