Skip to content

Commit

Permalink
chore: update GitHub Actions workflow for APK and AAB builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Blank committed Sep 28, 2024
1 parent b229c4f commit b8059ca
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/flutter_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Decode android/upload.jks
run: echo "${{ secrets.UPLOAD_KEYSTORE_JKS }}" | base64 --decode > android/upload.jks

- name: Decode android/key.properties
run: echo "${{ secrets.KEY_PROPERTIES }}" | base64 --decode > android/key.properties

- name: Checkout shelfsdk
uses: actions/checkout@v3
with:
Expand All @@ -47,14 +41,23 @@ jobs:
# - name: Run tests
# run: flutter test

- name: Build APK
- name: Decode android/upload.jks
run: echo "${{ secrets.UPLOAD_KEYSTORE_JKS }}" | base64 --decode > android/upload.jks

- name: Decode android/key.properties
run: echo "${{ secrets.KEY_PROPERTIES }}" | base64 --decode > android/key.properties

- name: Build APKs
run: flutter build apk --release --split-per-abi

- name: Build Universal APK
run: flutter build apk --release

- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: release-apk
path: build/app/outputs/flutter-apk/app-release.apk
- name: Rename Universal APK
run: mv build/app/outputs/flutter-apk/{app-release,app-release-universal}.apk

- name: Build App Bundle
run: flutter build appbundle --release

- name: version
id: version
Expand All @@ -75,7 +78,7 @@ jobs:
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
artifacts: build/app/outputs/flutter-apk/app-release.apk
artifacts: "build/app/outputs/flutter-apk/*-release*.apk,build/app/outputs/bundle/release/*.aab"
name: v${{ steps.version.outputs.version }}
tag: ${{ github.ref }}
body: ${{ steps.generate_release_notes.outputs.body }}

0 comments on commit b8059ca

Please sign in to comment.