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