-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix bug where the login fails when the google avatar takes a while to resolve from the backend * Update version * Update version * Update Firebase signing * Update iOS build stuff * Add logs * Format manifest file * Update Kotlin version to 2.0.20 * Add logs * Update Firebase configuration * Remove unnecessary logs * Update Workflow
- Loading branch information
1 parent
8c363b3
commit 4664667
Showing
10 changed files
with
128 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Generate Production APK | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: π Git Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: π¦ Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: "3" | ||
|
||
- name: π¦ Install Dependencies | ||
run: flutter packages get | ||
|
||
- name: β¨ Check Formatting | ||
run: dart format --set-exit-if-changed lib test | ||
|
||
- name: βοΈ Code Generation | ||
run: dart run build_runner build --delete-conflicting-outputs | ||
|
||
- name: π΅οΈ Analyze | ||
run: flutter analyze lib | ||
|
||
- name: βοΈ Download Android keystore | ||
id: android_keystore | ||
uses: timheuer/[email protected] | ||
with: | ||
fileName: key.jks | ||
encodedString: ${{ secrets.PROD_KEYSTORE }} | ||
|
||
- name: π Create key.properties | ||
run: | | ||
echo "storeFile=${{ steps.android_keystore.outputs.filePath }}" > android/key.properties | ||
echo "storePassword=${{ secrets.PROD_KEYSTORE_PASSPHRASE }}" >> android/key.properties | ||
echo "keyPassword=${{ secrets.PROD_KEYSTORE_PASSWORD }}" >> android/key.properties | ||
echo "keyAlias=${{ secrets.PROD_KEYSTORE_ALIAS }}" >> android/key.properties | ||
- name: βοΈ Build APK | ||
run: flutter build apk --flavor production --target lib/main_production.dart -v | ||
|
||
- name: π¦ Upload APK | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: production-apk | ||
path: build/app/outputs/apk/production/release/app-production-release.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.