Skip to content
Open
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
47 changes: 31 additions & 16 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,42 @@
name: build
on: [ pull_request ]
name: try-ci

on: [pull_request]

jobs:
build-android:
try-ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- uses: subosito/flutter-action@v2

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.22.0'
channel: stable
- name: Build apk

- name: Decrypt and set up keystore
run: |
echo "${{ secrets.KEYSTORE }}" | base64 --decode > android/app/googlekeys.jks

- name: Set up key.properties
run: |
echo "${{ secrets.KEY_PROPERTY }}" > android/key.properties

- name: Build APK
run: |
flutter pub get
dart pub outdated
dart format
flutter build appbundle --debug






flutter build appbundle --release

# - name: Upload build artifacts
# uses: actions/upload-artifact@v2
# with:
# name: app-release.aab
# path: build/app/outputs/bundle/release/app-release.aab