ci(android): upload debug APK on demand and shorten artifact retention (#43)
Co-authored-by: Developer <dev@example.com>
This commit is contained in:
parent
ac76257210
commit
e06ee51d70
|
|
@ -174,6 +174,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
- name: Upload debug APK
|
- name: Upload debug APK
|
||||||
|
if: github.event_name == 'workflow_dispatch'
|
||||||
uses: actions/upload-artifact@v5
|
uses: actions/upload-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: motorsignal-debug-apk
|
name: motorsignal-debug-apk
|
||||||
|
|
@ -181,7 +182,7 @@ jobs:
|
||||||
build/app/outputs/flutter-apk/app-debug.apk
|
build/app/outputs/flutter-apk/app-debug.apk
|
||||||
build/app/outputs/flutter-apk/app-debug.apk.sha256
|
build/app/outputs/flutter-apk/app-debug.apk.sha256
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 14
|
retention-days: 3
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Build signed release APK and AAB
|
name: Build signed release APK and AAB
|
||||||
|
|
@ -328,7 +329,7 @@ jobs:
|
||||||
build/app/outputs/flutter-apk/app-release.apk
|
build/app/outputs/flutter-apk/app-release.apk
|
||||||
build/release-artifacts.sha256
|
build/release-artifacts.sha256
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 30
|
retention-days: 7
|
||||||
- name: Upload release App Bundle
|
- name: Upload release App Bundle
|
||||||
uses: actions/upload-artifact@v5
|
uses: actions/upload-artifact@v5
|
||||||
with:
|
with:
|
||||||
|
|
@ -337,7 +338,7 @@ jobs:
|
||||||
build/app/outputs/bundle/release/app-release.aab
|
build/app/outputs/bundle/release/app-release.aab
|
||||||
build/release-artifacts.sha256
|
build/release-artifacts.sha256
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 30
|
retention-days: 7
|
||||||
- name: Remove signing credentials
|
- name: Remove signing credentials
|
||||||
if: always()
|
if: always()
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue