feat: init repo
deploy / deploy (push) Canceled after 0s

This commit is contained in:
2026-11-10 19:56:03 +01:00
commit 858d862fed
166 changed files with 13336 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
set -eu
SRC="${1:-/app/dist}"
DEST="${2:-/output}"
REL="releases/$(date -u +%Y%m%dT%H%M%SZ)-$$"
KEEP=$(basename "$REL")
mkdir -p "$DEST/$REL"
cp -a "$SRC/." "$DEST/$REL/"
touch "$DEST/$REL"
ln -sfn "$REL" "$DEST/.current.tmp"
mv -T "$DEST/.current.tmp" "$DEST/current"
find "$DEST/releases" -mindepth 1 -maxdepth 1 -type d ! -name "$KEEP" -mmin +5 -exec rm -rf {} + 2>/dev/null || true