diff --git a/.github/workflows/manual_release_android.yml b/.github/workflows/manual_release_android.yml index f8bf5bd0..076e181d 100644 --- a/.github/workflows/manual_release_android.yml +++ b/.github/workflows/manual_release_android.yml @@ -45,6 +45,6 @@ jobs: uses: svenstaro/upload-release-action@2.3.0 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: .output/poing-admob-android-v${{env.CURRENT_GODOT_VERSION}}.zip + file: .output/poing-godot-admob-android-v${{env.CURRENT_GODOT_VERSION}}.zip tag: ${{ github.event.inputs.tag }} overwrite: true diff --git a/.github/workflows/release_android.yml b/.github/workflows/release_android.yml index 092a0c16..34174bf0 100644 --- a/.github/workflows/release_android.yml +++ b/.github/workflows/release_android.yml @@ -41,6 +41,6 @@ jobs: uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: .output/poing-admob-android-v${{env.CURRENT_GODOT_VERSION}}.zip + file: .output/poing-godot-admob-android-v${{env.CURRENT_GODOT_VERSION}}.zip tag: ${{ github.ref }} overwrite: true diff --git a/scripts/unix/download_godot.sh b/scripts/unix/download_godot.sh index 2973cfa1..4180388c 100755 --- a/scripts/unix/download_godot.sh +++ b/scripts/unix/download_godot.sh @@ -26,9 +26,11 @@ GODOT_AAR_FILENAME+=".template_release.aar" FULL_PATHNAME_DOWNLOAD_GODOT_AAR+="/$GODOT_AAR_FILENAME" HTTP_STATUS=$(curl -o "$GODOT_AAR_FILENAME" -w "%{http_code}" "$FULL_PATHNAME_DOWNLOAD_GODOT_AAR") -rm "$GODOT_AAR_LIB" if [ "$HTTP_STATUS" -eq 200 ]; then + if [ -f "$GODOT_AAR_LIB" ]; then + rm "$GODOT_AAR_LIB" + fi mv "$GODOT_AAR_FILENAME" "$GODOT_AAR_LIB" else echo "Error: curl failed with HTTP status $HTTP_STATUS maybe you put a invalid version"