-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.31 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Flutter MultiPlatform Build
on: [ push, pull_request, workflow_dispatch ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Flutter Install
uses: subosito/flutter-action@v2.10.0
with:
channel: 'stable'
architecture: x64
cache: true
- name: Flutter Android Build
run: |
flutter pub get
flutter analyze
flutter build apk --dart-define=BNG_API_KEY=${{ secrets.SECRET_API_KEY }}
- uses: actions/upload-artifact@v1
with:
name: release-android-apk
path: build/app/outputs/flutter-apk/app-release.apk
build-ios:
needs: build
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Flutter Install
uses: subosito/flutter-action@v2.10.0
with:
channel: 'stable'
architecture: x64
cache: true
- name: Flutter IOS Build
run: |
flutter pub get
flutter analyze
flutter build ipa --release --no-codesign --dart-define=BNG_API_KEY=${{ secrets.SECRET_API_KEY }}
- uses: actions/upload-artifact@v1
with:
name: Runner.xcarchive
path: /Users/runner/work/GuardianDock/GuardianDock/build/ios/archive/Runner.xcarchive