Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/android-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,16 @@ jobs:

- name: Build release APK
working-directory: mobile
run: flutter build apk --release --split-per-abi
run: |
flutter build apk --release --split-per-abi
flutter build apk --release

- name: Rename APKs with version tag
run: |
VERSION_CODE=$(grep '^version:' mobile/pubspec.yaml | cut -d'+' -f2)
mv mobile/build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk mobile/build/app/outputs/flutter-apk/elephant-${{ github.ref_name }}-${VERSION_CODE}1.apk
mv mobile/build/app/outputs/flutter-apk/app-arm64-v8a-release.apk mobile/build/app/outputs/flutter-apk/elephant-${{ github.ref_name }}-${VERSION_CODE}2.apk
mv mobile/build/app/outputs/flutter-apk/app-x86_64-release.apk mobile/build/app/outputs/flutter-apk/elephant-${{ github.ref_name }}-${VERSION_CODE}3.apk
mv mobile/build/app/outputs/flutter-apk/app-release.apk mobile/build/app/outputs/flutter-apk/elephant-${{ github.ref_name }}-universal.apk
mv mobile/build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk mobile/build/app/outputs/flutter-apk/elephant-${{ github.ref_name }}-armeabi-v7a.apk
mv mobile/build/app/outputs/flutter-apk/app-arm64-v8a-release.apk mobile/build/app/outputs/flutter-apk/elephant-${{ github.ref_name }}-arm64-v8a.apk
mv mobile/build/app/outputs/flutter-apk/app-x86_64-release.apk mobile/build/app/outputs/flutter-apk/elephant-${{ github.ref_name }}-x86_64.apk

- name: Create or update GitHub Release
uses: softprops/action-gh-release@v2
Expand Down
Loading