Skip to content

Commit

Permalink
changed main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
orl0pl committed Dec 29, 2023
1 parent 3176399 commit c255a16
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: subosito/flutter-action@v1
with:
channel: "stable"
flutter-version: '3.10.6'

- name: Disable telemetry
run: flutter --disable-analytics
Expand Down Expand Up @@ -55,20 +55,15 @@ jobs:

- uses: subosito/flutter-action@v1
with:
channel: "stable"
flutter-version: '3.10.6'

- name: Android build (Pull Request)
if: github.event_name == 'pull_request'
env:
ANDROID_KEY_ALIAS: androiddebugkey
ANDROID_KEY_PASSWORD: android
ANDROID_STORE_PATH: key.jks
ANDROID_STORE_PASSWORD: android
run: flutter build apk --split-per-abi --release --target lib/main_prod.dart --flavor preview
run: flutter build apk --release --target lib/main_prod.dart --flavor preview

- name: Android build (Master Branch)
if: github.event_name != 'pull_request'
run: flutter build apk --split-per-abi --release --target lib/main_prod.dart --flavor preview
run: flutter build apk --release --target lib/main_prod.dart

- uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit c255a16

Please sign in to comment.