ZDDC-website/.forgejo/workflows/deploy-content.yml
ZDDC 9a7a5cfe88
All checks were successful
Deploy content to live site / deploy (push) Successful in 2s
add repo avatar; keep it out of the published tree
avatar.png is the Forgejo repo avatar (290x290), not site content.
Adding it to the deploy rsync excludes so it doesn't surface at
https://zddc.varasys.io/avatar.png.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 21:40:58 -05:00

37 lines
1.1 KiB
YAML

name: Deploy content to live site
# Hand-edited site content lives in this repo. Every push to main
# rsyncs it into /srv/zddc/ on the deploy host (Caddy bind-mount).
# /releases/ is owned by the ZDDC source repo's pipeline and is
# excluded from this rsync; it's untouched here.
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
runs-on: host
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Rsync content → /srv/zddc/
run: |
set -eu
rsync -av --delete-after \
--exclude='/releases/' \
--exclude='/.git*' \
--exclude='/.forgejo*' \
--exclude='/README.md' \
--exclude='/LICENSE' \
--exclude='/avatar.png' \
"$GITHUB_WORKSPACE/" /srv/zddc/
- name: Verify
run: |
# Runner is in a container on caddy-net; reach Caddy by container
# name. See deploy-release.yml in ZDDC for the same pattern.
curl -ksI --connect-to "zddc.varasys.io:8443:caddy:8443" \
https://zddc.varasys.io:8443/ | head -3