Files
docs/.gitea/workflows/automatic-deployment.yml
Nicole Rappe 417321150b
Some checks failed
Automatic Documentation Deployment / Sync Docs to https://kb.bunny-lab.io (push) Failing after 5s
Automatic Documentation Deployment / Sync Docs to https://docs.bunny-lab.io (push) Successful in 7s
Update .gitea/workflows/automatic-deployment.yml
2026-02-24 21:44:29 -07:00

78 lines
2.2 KiB
YAML

name: Automatic Documentation Deployment
on:
push:
branches: [ main ]
jobs:
mkdocs_deploy:
name: Sync Docs to https://docs.bunny-lab.io
runs-on: gitea-runner-mkdocs
steps:
- name: Install Node.js, git, rsync, and curl
run: |
apk add --no-cache nodejs npm git rsync curl
- name: Checkout Repository
uses: actions/checkout@v3
- name: Copy Repository Data to Production Server
run: |
rsync -a --delete \
--exclude='.git/' \
--exclude='.gitea/' \
--exclude='assets/' \
--exclude='schema/' \
--exclude='stylesheets/' \
--exclude='schema.json' \
. /Gitops_Destination/
- name: Trigger Material MKDocs Container Re-Deployment
run: |
curl --fail --show-error --silent --insecure \
-X POST \
"https://192.168.3.48:9443/api/stacks/webhooks/c891d2b5-7eca-42ef-8c3f-896bffbae803"
- name: Notify via NTFY
if: always()
run: |
curl -d "https://docs.bunny-lab.io - MKDocs job status: ${{ job.status }}" https://ntfy.bunny-lab.io/gitea-runners
zensical_deploy:
name: Sync Docs to https://kb.bunny-lab.io
runs-on: zensical-host
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Stop Zensical Service
run: systemctl stop zensical-watchdog
- name: Cleanup Zensical Docs
run: rm -rf /srv/zensical/docs
- name: Cleanup Zensical Site
run: rm -rf /srv/zensical/site
- name: Sync repository into /srv/zensical/docs
run: |
rsync -rlD --delete \
--exclude='.git/' \
--exclude='.gitea/' \
--exclude='assets/' \
--exclude='schema/' \
--exclude='stylesheets/' \
--exclude='schema.json' \
--chmod=D2775,F664 \
. /srv/zensical/docs/
- name: Start Zensical Service
run: systemctl start zensical-watchdog
- name: Notify via NTFY
if: always()
run: |
curl -d "https://kb.bunny-lab.io - Zensical job status: ${{ job.status }}" https://ntfy.bunny-lab.io/gitea-runners