Rename artefacts and delete nightly before new build gets pushed
All checks were successful
Build Game / Export Game Client (push) Successful in 1m5s

This commit is contained in:
2025-12-05 16:02:39 +01:00
parent 9855d02525
commit 065ec0c39d

View File

@ -65,14 +65,14 @@ jobs:
mkdir -p build/windows mkdir -p build/windows
# "Windows Desktop" must match the name in your export_presets.cfg # "Windows Desktop" must match the name in your export_presets.cfg
./godot_headless --headless --export-release "Windows Desktop" ./build/windows/game.exe ./godot_headless --headless --export-release "Windows Desktop" ./build/windows/moa.exe
- name: Export Linux Client - name: Export Linux Client
run: | run: |
mkdir -p build/linux mkdir -p build/linux
# "Linux" must match the name in your export_presets.cfg # "Linux" must match the name in your export_presets.cfg
./godot_headless --headless --export-release "Linux" ./build/linux/game.x86_64 ./godot_headless --headless --export-release "Linux" ./build/linux/moa.x86_64
- name: Upload Artifacts - name: Upload Artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
@ -99,6 +99,13 @@ jobs:
zip -r ../../$ZIP_NAME . zip -r ../../$ZIP_NAME .
cd ../.. cd ../..
echo "Removing old Nightly artifact..."
# We run DELETE first. We add '|| true' so the build doesn't fail
# if this is the very first time (which would return 404 Not Found).
curl -X DELETE \
--user "${{ gitea.actor }}:$TOKEN" \
"$API_URL/$PACKAGE_NAME/$VERSION/$ZIP_NAME" || true
echo "Uploading Nightly..." echo "Uploading Nightly..."
# PUT request replaces the file if it exists # PUT request replaces the file if it exists
curl --fail --user "${{ gitea.actor }}:$TOKEN" \ curl --fail --user "${{ gitea.actor }}:$TOKEN" \