Replace rsync with cp; runner images lack rsync
This commit is contained in:
@@ -1,17 +1,15 @@
|
|||||||
name: Deploy static site to devfarm
|
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.
|
# devsites share so Caddy serves it at <site>.dev.clubbabyseal.com.
|
||||||
#
|
#
|
||||||
# Usage in a caller workflow:
|
# Usage in a caller workflow:
|
||||||
# jobs:
|
# jobs:
|
||||||
# deploy:
|
# deploy:
|
||||||
# uses: ringmaster/tower/.gitea/workflows/deploy-static.yml@main
|
# uses: ringmaster/actions/.gitea/workflows/deploy-static.yml@main
|
||||||
# with:
|
# with:
|
||||||
# site: myapp # → https://myapp.dev.clubbabyseal.com
|
# site: myapp # → https://myapp.dev.clubbabyseal.com
|
||||||
# build-command: npm run build
|
# build-command: npm run build
|
||||||
#
|
|
||||||
# See docs/deploy-static.md for full reference.
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
@@ -73,6 +71,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "$TARGET"
|
mkdir -p "$TARGET"
|
||||||
rsync -a --delete "${SRC}/" "${TARGET}/"
|
rm -rf "${TARGET:?}/"* 2>/dev/null || true
|
||||||
|
cp -a "${SRC}/." "${TARGET}/"
|
||||||
echo "Deployed $SRC → $TARGET"
|
echo "Deployed $SRC → $TARGET"
|
||||||
echo "Live at: https://${SITE}.dev.clubbabyseal.com"
|
echo "Live at: https://${SITE}.dev.clubbabyseal.com"
|
||||||
|
|||||||
Reference in New Issue
Block a user