Replace rsync with cp; runner images lack rsync
This commit is contained in:
@@ -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 <site>.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"
|
||||
|
||||
Reference in New Issue
Block a user