Extract merged native libs directly in GP release job

This commit is contained in:
Vadim 2023-08-09 16:35:19 +02:00
parent 4231506c48
commit 966a3c676c

View file

@ -177,9 +177,10 @@ jobs:
with: with:
name: m3_lightmeter_apk name: m3_lightmeter_apk
extract-merged-native-libs: create-google-play-release:
name: Extract merged native libraries name: Create Google Play release
needs: [build] if: github.ref_name == 'main'
needs: [generate-release-notes]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Download app bundle - name: Download app bundle
@ -192,28 +193,6 @@ jobs:
unzip app-prod-release.aab unzip app-prod-release.aab
(cd base/lib && zip -r "$OLDPWD/merged_native_libs.zip" .) (cd base/lib && zip -r "$OLDPWD/merged_native_libs.zip" .)
- name: Upload merged native libs to artifacts
uses: actions/upload-artifact@v3
with:
name: merged_native_libs
path: merged_native_libs.zip
create-google-play-release:
name: Create Google Play release
if: github.ref_name == 'main'
needs: [generate-release-notes, extract-merged-native-libs]
runs-on: ubuntu-latest
steps:
- name: Download app bundle
uses: actions/download-artifact@v3
with:
name: m3_lightmeter_bundle
- name: Download merged native libs
uses: actions/download-artifact@v3
with:
name: merged_native_libs
- name: Download release notes - name: Download release notes
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
@ -253,9 +232,7 @@ jobs:
if: ${{ always() }} if: ${{ always() }}
uses: geekyeggo/delete-artifact@v2 uses: geekyeggo/delete-artifact@v2
with: with:
name: | name: m3_lightmeter_bundle
m3_lightmeter_bundle
merged_native_libs
cleanup: cleanup:
name: Cleanup name: Cleanup