Skip to content

Commit

Permalink
ci: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
gumaciel committed Aug 23, 2023
1 parent b3e27c4 commit 97bab03
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/manual_release_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/release_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion scripts/unix/download_godot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 97bab03

Please sign in to comment.