Skip to content
Merged

Dev #62

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions .github/workflows/flutter-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,30 @@ jobs:
channel: stable
cache: true

- name: Inject google-services.json
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > apps/flutter/android/app/google-services.json

- name: Decode and write release keystore
run: |
echo '${{ secrets.KEYSTORE_BASE64 }}' | base64 --decode > apps/flutter/android/app/universe-release.jks
cat > apps/flutter/android/key.properties <<EOF
storeFile=../app/universe-release.jks
storePassword=${{ secrets.KEYSTORE_PASSWORD }}
keyAlias=${{ secrets.KEY_ALIAS }}
keyPassword=${{ secrets.KEY_PASSWORD }}
EOF

- name: Get dependencies
working-directory: apps/flutter
run: flutter pub get

- name: Build debug APK
- name: Build release APK
working-directory: apps/flutter
run: flutter build apk --debug --dart-define=API_BASE_URL=${{ secrets.RAILWAY_BACKEND_URL }}
run: |
flutter build apk --release \
--dart-define=API_BASE_URL=${{ secrets.RAILWAY_BACKEND_URL }} \
--dart-define=FIREBASE_API_KEY=${{ secrets.FIREBASE_API_KEY_ANDROID }} \
--dart-define=FIREBASE_APP_ID=${{ secrets.FIREBASE_APP_ID_ANDROID }}

- name: Get next version tag
id: tag
Expand All @@ -52,7 +69,7 @@ jobs:
tag_name: ${{ steps.tag.outputs.tag }}
name: "Release ${{ steps.tag.outputs.tag }}"
body: |
Debug APK — built from `release/development`
Release APK — built from `release/development`
Commit: ${{ github.sha }}
files: apps/flutter/build/app/outputs/flutter-apk/app-debug.apk
files: apps/flutter/build/app/outputs/flutter-apk/app-release.apk
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions apps/backend/.env.test
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ RESEND_API_KEY=re_test_key
RESEND_FROM_EMAIL=test@test.com
WEB_URL=http://localhost:3000
FLUTTER_ORIGIN=http://localhost:3001
GEMINI_API_KEY=test_gemini_key
ANTHROPIC_API_KEY=test_anthropic_key
11 changes: 0 additions & 11 deletions apps/backend/coverage/coverage-final.json

This file was deleted.

Loading
Loading