diff --git a/.gitea/workflows/deploy-static.yml b/.gitea/workflows/deploy-static.yml index f28f9d6..55d6177 100644 --- a/.gitea/workflows/deploy-static.yml +++ b/.gitea/workflows/deploy-static.yml @@ -1,17 +1,15 @@ name: Deploy static site to devfarm -# Reusable workflow: installs, builds, and rsyncs dist output to the +# Reusable workflow: installs, builds, and deploys dist output to the # devsites share so Caddy serves it at .dev.clubbabyseal.com. # # Usage in a caller workflow: # jobs: # deploy: -# uses: ringmaster/tower/.gitea/workflows/deploy-static.yml@main +# uses: ringmaster/actions/.gitea/workflows/deploy-static.yml@main # with: # site: myapp # → https://myapp.dev.clubbabyseal.com # build-command: npm run build -# -# See docs/deploy-static.md for full reference. on: workflow_call: @@ -73,6 +71,7 @@ jobs: fi mkdir -p "$TARGET" - rsync -a --delete "${SRC}/" "${TARGET}/" + rm -rf "${TARGET:?}/"* 2>/dev/null || true + cp -a "${SRC}/." "${TARGET}/" echo "Deployed $SRC → $TARGET" echo "Live at: https://${SITE}.dev.clubbabyseal.com"