Skip to content

Commit 187d122

Browse files
Shebyyygrayankit
andauthored
chore: added universal apk build (#75) [build.apk]
* chore: added universal apk build * just made some changes --------- Co-authored-by: Ankit Grai <ankigray@outlook.com>
1 parent 9624c4a commit 187d122

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/dart.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ jobs:
107107
- run: flutter clean
108108
- run: flutter pub get
109109
- run: flutter build apk --release --split-per-abi
110+
- run: flutter build apk --release
110111

111112
- name: Rename APKs
112113
run: |
@@ -116,6 +117,8 @@ jobs:
116117
done
117118
ls build/app/outputs/flutter-apk
118119
120+
- name: Rename universal APK
121+
run: mv build/app/outputs/flutter-apk/app-release.apk build/app/outputs/flutter-apk/Dantotsu_Android_universal_${{github.ref_name}}.apk
119122

120123
- name: Upload arm64 File To Google Drive
121124
id: gdriveUpload_arm64
@@ -144,6 +147,15 @@ jobs:
144147
upload-to-folder-id: 1S4QzdKz7ZofhiF5GAvjMdBvYK7YhndKM
145148
service-account-json: "${{secrets.GOOGLE_KEY}}"
146149
overrwrite: true
150+
- name: Upload File To Google Drive
151+
id: gdriveUpload_universal
152+
uses: hoatruongdev09/google-drive-file-upload-github-action@v1.1
153+
with:
154+
file-path: build/app/outputs/flutter-apk/Dantotsu_Android_universal_${{github.ref_name}}.apk
155+
upload-name: Dartotsu.apk
156+
upload-to-folder-id: 1S4QzdKz7ZofhiF5GAvjMdBvYK7YhndKM
157+
service-account-json: "${{secrets.GOOGLE_KEY}}"
158+
overrwrite: true
147159
build_windows:
148160
runs-on: windows-latest
149161
if: contains(github.event.head_commit.message, '[build.windows]') || contains(github.event.head_commit.message, '[build]') || contains(github.event.head_commit.message, '[build.all]')
@@ -443,6 +455,7 @@ jobs:
443455
sendMessage:
444456
runs-on: ubuntu-latest
445457
needs: [build_android, build_windows, build_linux, build_ios, build_macos]
458+
if: always()
446459
permissions:
447460
contents: read
448461
pull-requests: read

0 commit comments

Comments
 (0)