34-create-package-process #35

Merged
Josh merged 3 commits from 34-create-package-process into main 2025-08-26 20:02:48 +00:00
Showing only changes of commit 6de4f4844e - Show all commits

21
deploy/create_package.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -euo pipefail
# Load config if present else use environment.
CONFIG_FILE="$(dirname "$0")/local.env"
if [ -f "$CONFIG_FILE" ]; then
source "$CONFIG_FILE"
fi
VERSION=$(date +%Y%m%d-%H%M%S)
OUTFILE="app-bundle-${VERSION}.zip"
echo "[*] Building $OUTFILE..."
git archive --format=zip HEAD -o "$OUTFILE"
echo "[*] Pushing to registry as $VERSION..."
curl -f -u "${REGISTRY_USER}:${REGISTRY_TOKEN}" \
--upload-file "$OUTFILE" \
"${REGISTRY_URL}/api/packages/projects/generic/chess/${VERSION}/$(basename "$OUTFILE")"