From eec4803f7d6cdcccb4b3df192bb165afba67ad4a Mon Sep 17 00:00:00 2001 From: LukeGus Date: Wed, 24 Sep 2025 19:27:09 -0500 Subject: [PATCH] Fix android build --- .github/workflows/build-app.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index 7fde78d..e91ef2b 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -105,11 +105,35 @@ jobs: exit 1 fi + - name: 📤 Upload Build Artifacts + if: ${{ github.event.inputs.action == 'file' }} + run: | + # Find and upload the build file + if [ "${{ github.event.inputs.platform }}" = "android" ]; then + BUILD_FILE=$(find . -name "build-*.apk" -o -name "build-*.aab" | head -1) + else + BUILD_FILE=$(find . -name "build-*.ipa" -o -name "build-*.app" | head -1) + fi + + if [ -n "$BUILD_FILE" ]; then + echo "Uploading file: $BUILD_FILE" + # Create a temporary directory and copy the file + mkdir -p temp-upload + cp "$BUILD_FILE" temp-upload/ + + # Upload using the upload-artifact action + echo "::set-output name=file_path::temp-upload/$BUILD_FILE" + else + echo "No build file found to upload" + exit 1 + fi + id: find-build-file + - name: 📤 Upload Build Artifacts if: ${{ github.event.inputs.action == 'file' }} uses: actions/upload-artifact@v4 with: name: ${{ github.event.inputs.platform }}-${{ github.event.inputs.profile }}-build - path: "build-*.apk,build-*.aab,build-*.ipa,build-*.app" + path: temp-upload/ retention-days: 30 if-no-files-found: warn \ No newline at end of file