Initial commit: setup public docs and pipeline
Some checks failed
deploy-docs / build-and-deploy (push) Has been cancelled
Some checks failed
deploy-docs / build-and-deploy (push) Has been cancelled
This commit is contained in:
23
.gitea/workflows/deploy.yaml
Normal file
23
.gitea/workflows/deploy.yaml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user