Rename artefacts and delete nightly before new build gets pushed
All checks were successful
Build Game / Export Game Client (push) Successful in 1m5s
All checks were successful
Build Game / Export Game Client (push) Successful in 1m5s
This commit is contained in:
@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user