Preserve release zip if GP release creation failed

This commit is contained in:
Vadim 2023-08-09 10:02:33 +02:00
parent f561b97cff
commit 585c87ae99

View file

@ -211,6 +211,7 @@ jobs:
# TODO: create whatsnew folder and move release notes there # TODO: create whatsnew folder and move release notes there
- name: Create Google Play release - name: Create Google Play release
id: create-google-play-release-step
uses: r0adkll/upload-google-play@v1.1.1 uses: r0adkll/upload-google-play@v1.1.1
with: with:
serviceAccountJsonPlainText: ${{ secrets.GH_ACTIONS_SERVICE_ACCOUNT_JSON }} serviceAccountJsonPlainText: ${{ secrets.GH_ACTIONS_SERVICE_ACCOUNT_JSON }}
@ -222,6 +223,17 @@ jobs:
debugSymbols: merged_native_libs.zip debugSymbols: merged_native_libs.zip
whatsNewDirectory: whatsnew whatsNewDirectory: whatsnew
- name: Zip app bundle and merged_native_libs
if: ${{ failure() && steps.create-google-play-release-step.conclusion == 'failure' }}
run: zip m3_lightmeter_release.zip app-prod-release.aab merged_native_libs.zip
- name: Upload release zip to artifacts
if: ${{ failure() && steps.create-google-play-release-step.conclusion == 'failure' }}
uses: actions/upload-artifact@v3
with:
name: m3_lightmeter_release
path: m3_lightmeter_release.zip
- name: Delete app bundle & merged native libs artifacts - name: Delete app bundle & merged native libs artifacts
uses: geekyeggo/delete-artifact@v2 uses: geekyeggo/delete-artifact@v2
with: with: