From bada0f51fce3f360a879084670c9c0cea96b1771 Mon Sep 17 00:00:00 2001 From: LucaZanni Date: Fri, 3 Apr 2026 17:05:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(ci):=20correggi=20upload=20a?= =?UTF-8?q?rtifact=20APK=20e=20aggiungi=20build=20reports?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - aggiungi fallback `|| 'debug'` nel path upload APK per evitare doppio slash quando build-type รจ vuoto - aggiungi step upload Gradle build reports (problems-report.html) con if-no-files-found: ignore - aggiorna default java-version a 21 Fixes #6 @30m --- .gitea/workflows/capacitor-android.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/capacitor-android.yml b/.gitea/workflows/capacitor-android.yml index bf2a664..43074e4 100644 --- a/.gitea/workflows/capacitor-android.yml +++ b/.gitea/workflows/capacitor-android.yml @@ -8,7 +8,7 @@ on: default: '22.17' java-version: type: string - default: '17' + default: '21' runner: type: string default: 'ubuntu-latest' @@ -125,8 +125,8 @@ jobs: if: inputs.output-format == 'apk' uses: https://gitea.com/actions/upload-artifact@v3 with: - name: android-${{ inputs.build-type }}-apk - path: android/app/build/outputs/apk/${{ inputs.build-type }}/*.apk + name: android-${{ inputs.build-type || 'debug' }}-apk + path: android/app/build/outputs/apk/${{ inputs.build-type || 'debug' }}/*.apk retention-days: 14 - name: Upload AAB artifact @@ -136,3 +136,12 @@ jobs: name: android-release-aab path: android/app/build/outputs/bundle/release/*.aab retention-days: 14 + + - name: Upload Gradle build reports + if: always() + uses: https://gitea.com/actions/upload-artifact@v3 + with: + name: gradle-build-reports + path: android/build/reports/ + retention-days: 7 + if-no-files-found: ignore