mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-09 12:39:29 +00:00
chore: update GitHub Actions workflow for APK and AAB builds
This commit is contained in:
parent
b229c4f2f5
commit
b8059cad4d
1 changed files with 16 additions and 13 deletions
29
.github/workflows/flutter_release.yaml
vendored
29
.github/workflows/flutter_release.yaml
vendored
|
|
@ -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:
|
||||
|
|
@ -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
|
||||
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue