Some checks failed
Build Godot Engine / Build Windows ${{ matrix.name }} (godot-windows-debug, Debug Template, no, template_debug) (push) Successful in 21m43s
Build Godot Engine / Build Windows ${{ matrix.name }} (godot-windows-editor, Editor, yes, editor) (push) Successful in 33m49s
Build Godot Engine / Build Windows ${{ matrix.name }} (godot-windows-release, Release Template, yes, template_release) (push) Successful in 22m51s
Build Godot Engine / publish (push) Failing after 18s
47 lines
1.5 KiB
Bash
47 lines
1.5 KiB
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
# --- 0. SETUP ---
|
|
# We install dependencies because we are running in a minimal Alpine container
|
|
echo "Installing tools..."
|
|
apk add --no-cache curl zip
|
|
|
|
echo "------------------------------------------------"
|
|
echo "Publishing Packages for: $VERSION"
|
|
echo "Registry API: $API_URL"
|
|
echo "------------------------------------------------"
|
|
|
|
# --- 1. PUBLISH EDITOR ---
|
|
echo "Processing Editor..."
|
|
# Zip both .exe and .console.exe
|
|
zip -j godot-editor-windows.zip dist/godot-windows-editor/*.exe
|
|
|
|
echo "Uploading Editor..."
|
|
curl --fail --user "$ACTOR:$TOKEN" \
|
|
--upload-file "godot-editor-windows.zip" \
|
|
"$API_URL/godot-editor-windows/$VERSION/godot-editor-windows.zip"
|
|
|
|
# --- 2. PUBLISH TEMPLATES ---
|
|
echo "Processing Templates..."
|
|
mkdir -p templates
|
|
|
|
# Select specific binaries (ignoring console wrapper)
|
|
DEBUG_SRC=$(find dist/godot-windows-debug -name "*.exe" | grep -v "console.exe" | head -n 1)
|
|
RELEASE_SRC=$(find dist/godot-windows-release -name "*.exe" | grep -v "console.exe" | head -n 1)
|
|
|
|
echo "Found Debug: $DEBUG_SRC"
|
|
echo "Found Release: $RELEASE_SRC"
|
|
|
|
# Rename to standard Godot export names
|
|
cp "$DEBUG_SRC" templates/windows_debug_x86_64.exe
|
|
cp "$RELEASE_SRC" templates/windows_release_x86_64.exe
|
|
|
|
# Zip into TPZ
|
|
zip -j templates.tpz templates/*
|
|
|
|
echo "Uploading Templates..."
|
|
curl --fail --user "$ACTOR:$TOKEN" \
|
|
--upload-file "templates.tpz" \
|
|
"$API_URL/godot-templates/$VERSION/windows_templates.tpz"
|
|
|
|
echo "✅ Success! All packages published." |