Files
wiki/.gitea/workflows/deploy.yml
T
zdh 6432d01b89
Deploy Wiki to Production / deploy (push) Has been cancelled
chore: remove dead CSS + improve nginx reload handling
2026-06-04 15:57:13 +08:00

29 lines
603 B
YAML

name: Deploy Wiki to Production
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Deploy
run: |
rsync -avz \
--exclude='.git' \
--exclude='.claude' \
--exclude='.gitea' \
--exclude='.gitignore' \
--exclude='CLAUDE.md' \
--exclude='*.pptx' \
--exclude='*.xlsx' \
--delete \
./ /data/wiki/
- name: Reload nginx
run: nginx -t && nginx -s reload || nginx