🐛 fix(ci): correggi upload artifact APK e aggiungi build reports
- 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
This commit is contained in:
@@ -8,7 +8,7 @@ on:
|
|||||||
default: '22.17'
|
default: '22.17'
|
||||||
java-version:
|
java-version:
|
||||||
type: string
|
type: string
|
||||||
default: '17'
|
default: '21'
|
||||||
runner:
|
runner:
|
||||||
type: string
|
type: string
|
||||||
default: 'ubuntu-latest'
|
default: 'ubuntu-latest'
|
||||||
@@ -125,8 +125,8 @@ jobs:
|
|||||||
if: inputs.output-format == 'apk'
|
if: inputs.output-format == 'apk'
|
||||||
uses: https://gitea.com/actions/upload-artifact@v3
|
uses: https://gitea.com/actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: android-${{ inputs.build-type }}-apk
|
name: android-${{ inputs.build-type || 'debug' }}-apk
|
||||||
path: android/app/build/outputs/apk/${{ inputs.build-type }}/*.apk
|
path: android/app/build/outputs/apk/${{ inputs.build-type || 'debug' }}/*.apk
|
||||||
retention-days: 14
|
retention-days: 14
|
||||||
|
|
||||||
- name: Upload AAB artifact
|
- name: Upload AAB artifact
|
||||||
@@ -136,3 +136,12 @@ jobs:
|
|||||||
name: android-release-aab
|
name: android-release-aab
|
||||||
path: android/app/build/outputs/bundle/release/*.aab
|
path: android/app/build/outputs/bundle/release/*.aab
|
||||||
retention-days: 14
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user