diff --git a/.gitea/workflows/build-game.yaml b/.gitea/workflows/build-game.yaml index eddca20..7ae882d 100644 --- a/.gitea/workflows/build-game.yaml +++ b/.gitea/workflows/build-game.yaml @@ -65,14 +65,14 @@ jobs: mkdir -p build/windows # "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 run: | mkdir -p build/linux # "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 uses: actions/upload-artifact@v3 @@ -99,6 +99,13 @@ jobs: zip -r ../../$ZIP_NAME . 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..." # PUT request replaces the file if it exists curl --fail --user "${{ gitea.actor }}:$TOKEN" \