mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 15:00:40 +00:00
ML-61 Download each artifact separately (#102)
* Download each artifact separately * typo * Updated setup-java action * Extract merged native libs directly in GP release job
This commit is contained in:
parent
b9412c7441
commit
d41fa6fa84
1 changed files with 16 additions and 29 deletions
45
.github/workflows/create_release.yml
vendored
45
.github/workflows/create_release.yml
vendored
|
@ -37,7 +37,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- uses: actions/setup-java@v2
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: "zulu"
|
distribution: "zulu"
|
||||||
java-version: "11"
|
java-version: "11"
|
||||||
|
@ -152,16 +152,19 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Download apk & release notes
|
- name: Download apk
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: |
|
name: m3_lightmeter_apk
|
||||||
m3_lightmeter_apk
|
|
||||||
whatsnew-en-US
|
|
||||||
|
|
||||||
- name: Rename apk
|
- name: Rename apk
|
||||||
run: mv app-prod-release.apk m3_lightmeter.apk
|
run: mv app-prod-release.apk m3_lightmeter.apk
|
||||||
|
|
||||||
|
- name: Download release notes
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: whatsnew-en-US
|
||||||
|
|
||||||
- uses: ncipollo/release-action@v1.12.0
|
- uses: ncipollo/release-action@v1.12.0
|
||||||
with:
|
with:
|
||||||
artifacts: "m3_lightmeter.apk"
|
artifacts: "m3_lightmeter.apk"
|
||||||
|
@ -174,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
|
||||||
|
@ -189,31 +193,16 @@ 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
|
- name: Download release notes
|
||||||
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 & merged native libs
|
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: |
|
name: whatsnew-en-US
|
||||||
m3_lightmeter_bundle
|
|
||||||
merged_native_libs
|
|
||||||
whatsnew-en-US
|
|
||||||
|
|
||||||
- name: Move release notes to a folder
|
- name: Move release notes to a folder
|
||||||
run: |
|
run: |
|
||||||
mkdir whatsnew
|
mkdir whatsnew
|
||||||
mv whatsnew-en-US.md whatsnew
|
mv whatsnew-en-US.md whatsnew
|
||||||
|
|
||||||
- name: Create Google Play release
|
- name: Create Google Play release
|
||||||
id: create-google-play-release-step
|
id: create-google-play-release-step
|
||||||
uses: r0adkll/upload-google-play@v1.1.1
|
uses: r0adkll/upload-google-play@v1.1.1
|
||||||
|
@ -243,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
|
||||||
|
|
Loading…
Reference in a new issue