@@ -65,18 +65,18 @@ jobs:
6565 firebase_token : ${{ secrets.FIREBASE_TOKEN }}
6666 run : |
6767 dart pub global activate flutterfire_cli 1.3.1
68- flutterfire configure -t $firebase_token -y -p unn-mobile-1 --platforms=android --android-package-name=ru.unn.unn_mobile
68+ flutterfire configure -t $firebase_token -y -p unn-mobile-1 --platforms=android --android-package-name=ru.bitcodersnn.unnstudenthub
6969 - name : build
70- run : flutter build apk
70+ run : flutter build appbundle
7171 - name : delete old build artifact
7272 uses : geekyeggo/delete-artifact@f275313e70c08f6120db482d7a6b98377786765b
7373 with :
74- name : unn-mobile.apk
74+ name : unn-mobile.aab
7575 - name : upload build artifact
7676 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
7777 with :
7878 name : unn-mobile.apk
79- path : " build/app/outputs/flutter-apk/ app-release.apk "
79+ path : " build/app/outputs/bundle/release/ app-release.aab "
8080
8181 deploy :
8282 runs-on : ubuntu-latest
8787 - name : retrieve the binary
8888 uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
8989 with :
90- name : unn-mobile.apk
90+ name : unn-mobile.aab
9191 - name : install firebase
9292 run : curl -sL https://firebase.tools | bash
9393 - name : deploy (main)
@@ -96,13 +96,13 @@ jobs:
9696 firebase_token : ${{ secrets.FIREBASE_TOKEN }}
9797 app_id : ${{ secrets.FIREBASE_A_APP_ID }}
9898 run : |
99- firebase --project unn-mobile-1 --token $firebase_token appdistribution:distribute --groups "testers" --app "$app_id" --release-notes "$(git log -1 --pretty=%B)" "${GITHUB_WORKSPACE}/app-release.apk "
99+ firebase --project unn-mobile-1 --token $firebase_token appdistribution:distribute --groups "testers" --app "$app_id" --release-notes "$(git log -1 --pretty=%B)" "${GITHUB_WORKSPACE}/app-release.aab "
100100 - name : deploy (PR)
101101 if : github.ref != 'refs/heads/develop' && github.ref != 'refs/heads/main'
102102 env :
103103 TITLE : ${{ github.head_ref || github.ref_name }}
104104 firebase_token : ${{ secrets.FIREBASE_TOKEN }}
105105 app_id : ${{ secrets.FIREBASE_A_APP_ID }}
106106 run : |
107- firebase --project unn-mobile-1 --token $firebase_token appdistribution:distribute --groups "testers" --app "$app_id" --release-notes "$TITLE" "${GITHUB_WORKSPACE}/app-release.apk "
107+ firebase --project unn-mobile-1 --token $firebase_token appdistribution:distribute --groups "testers" --app "$app_id" --release-notes "$TITLE" "${GITHUB_WORKSPACE}/app-release.aab "
108108
0 commit comments