Skip to content

Commit

Permalink
workflow update (split per abi)
Browse files Browse the repository at this point in the history
  • Loading branch information
HemantKArya committed Aug 16, 2024
1 parent 4697c93 commit f8adc64
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,25 @@ jobs:
echo keyAlias=\${{ secrets.KEY_ALIAS }} >> ./android/key.properties
- name: Build App files
run: flutter build apk --release --build-number ${{github.run_number}}
run: flutter build apk --release --split-per-abi --build-number ${{github.run_number}}

- name: Verify Sign
run: jarsigner --verify --verbose build/app/outputs/flutter-apk/app-release.apk
run: |
jarsigner --verify --verbose build/app/outputs/flutter-apk/app-release.apk
jarsigner --verify --verbose build/app/outputs/flutter-apk/app-x86-release.apk
jarsigner --verify --verbose build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk
jarsigner --verify --verbose build/app/outputs/flutter-apk/app-arm64-v8a-release.apk
jarsigner --verify --verbose build/app/outputs/flutter-apk/app-x86_64-release.apk
- name: Rename APK file
run: Rename-Item -Path "build/app/outputs/flutter-apk/app-release.apk" -NewName "bloomee_tunes_android_v2.9.5+${{github.run_number}}.apk"
run: |
Rename-Item -Path "build/app/outputs/flutter-apk/app-release.apk" -NewName "bloomee_tunes_android_v2.9.5+${{github.run_number}}.apk"
Rename-Item -Path "build/app/outputs/flutter-apk/app-x86-release.apk" -NewName "bloomee_tunes_android_v2.9.5+${{github.run_number}}_x86.apk"
Rename-Item -Path "build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk" -NewName "bloomee_tunes_android_v2.9.5+${{github.run_number}}_armeabi-v7a.apk"
Rename-Item -Path "build/app/outputs/flutter-apk/app-arm64-v8a-release.apk" -NewName "bloomee_tunes_android_v2.9.5+${{github.run_number}}_arm64-v8a.apk"
Rename-Item -Path "build/app/outputs/flutter-apk/app-x86_64-release.apk" -NewName "bloomee_tunes_android_v2.9.5+${{github.run_number}}_x86_64.apk"
- name: Build Windows App
run: flutter build windows --release --build-number ${{github.run_number}}
Expand All @@ -70,12 +82,22 @@ jobs:
path: |
build/app/outputs/flutter-apk/bloomee_tunes_android_v2.9.5+${{github.run_number}}.apk
build/windows/x64/bloomee_tunes_windows_x64_v2.9.5+${{github.run_number}}.zip
build/app/outputs/flutter-apk/bloomee_tunes_android_v2.9.5+${{github.run_number}}_x86.apk
build/app/outputs/flutter-apk/bloomee_tunes_android_v2.9.5+${{github.run_number}}_armeabi-v7a.apk
build/app/outputs/flutter-apk/bloomee_tunes_android_v2.9.5+${{github.run_number}}_arm64-v8a.apk
build/app/outputs/flutter-apk/bloomee_tunes_android_v2.9.5+${{github.run_number}}_x86_64.apk
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: |
build/windows/x64/bloomee_tunes_windows_x64_v2.9.5+${{github.run_number}}.zip
build/app/outputs/flutter-apk/bloomee_tunes_android_v2.9.5+${{github.run_number}}.apk
build/app/outputs/flutter-apk/bloomee_tunes_android_v2.9.5+${{github.run_number}}_x86.apk
build/app/outputs/flutter-apk/bloomee_tunes_android_v2.9.5+${{github.run_number}}_armeabi-v7a.apk
build/app/outputs/flutter-apk/bloomee_tunes_android_v2.9.5+${{github.run_number}}_arm64-v8a.apk
build/app/outputs/flutter-apk/bloomee_tunes_android_v2.9.5+${{github.run_number}}_x86_64.apk
tag: v2.9.5+${{github.run_number}}
token: ${{secrets.SECRET_KEY}}
prerelease: true
Expand Down

0 comments on commit f8adc64

Please sign in to comment.