Harden release publishing and document release blockers
This commit is contained in:
1 parent
60bf9a8ef6
commit
b8507df346
11 files changed
+261
-9
No files matched your search
@@ -17,6 +17,12 @@ set -euo pipefail
|
||||
|
||||
GODOT="${GODOT:-godot}"
|
||||
VERSION="$(grep -oP 'config/version="\K[^"]+' project.godot)"
|
||||
PLAYER_DOCS=(
|
||||
"CREDITS.md"
|
||||
"PRIVACY.md"
|
||||
"docs/accessibility.md"
|
||||
"docs/known-limitations.md"
|
||||
)
|
||||
mkdir -p build
|
||||
# Presets now embed the PCK into a single binary; drop stale .pck leftovers.
|
||||
rm -f build/*.pck
|
||||
@@ -34,6 +40,9 @@ echo "==> Exporting Web (no threads, static-hosting friendly)"
|
||||
rm -rf build/web
|
||||
mkdir -p build/web
|
||||
"$GODOT" --headless --export-release "Web" "build/web/index.html"
|
||||
for doc in "${PLAYER_DOCS[@]}"; do
|
||||
cp "$doc" "build/web/$(basename "$doc")"
|
||||
done
|
||||
# Ship the web build as a single zip so it can be downloaded and served as-is.
|
||||
rm -f "build/gig-line-web-${VERSION}.zip"
|
||||
if command -v zip >/dev/null 2>&1; then
|
||||
@@ -58,6 +67,9 @@ cp "build/gig-line-linux-${VERSION}.x86_64" "$HQ_DIR/"
|
||||
cp "build/gig-line-windows-${VERSION}.exe" "$HQ_DIR/"
|
||||
cp packaging/desktop_hq/override.cfg "$HQ_DIR/"
|
||||
cp packaging/desktop_hq/README.txt "$HQ_DIR/"
|
||||
for doc in "${PLAYER_DOCS[@]}"; do
|
||||
cp "$doc" "$HQ_DIR/$(basename "$doc")"
|
||||
done
|
||||
rm -f "build/gig-line-desktop-hq-${VERSION}.zip"
|
||||
if command -v zip >/dev/null 2>&1; then
|
||||
(cd "$HQ_DIR" && zip -q -r "../gig-line-desktop-hq-${VERSION}.zip" .)
|
||||
|
||||
@@ -106,6 +106,10 @@ for f in "${all_artifacts[@]}"; do
|
||||
done
|
||||
echo "==> Checksums written to $checksum_file"
|
||||
cat "$checksum_file"
|
||||
if [[ "${PUBLISH_DRY_RUN:-0}" == "1" ]]; then
|
||||
echo "DRY RUN: preflight and checksums passed; no release or upload was created."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
API="$HOST/api/v1/repos/$REPO/releases"
|
||||
created_release=0
|
||||
|
||||
Reference in new issue
Block a user