generated from ExpTechTW/Example
-
-
Notifications
You must be signed in to change notification settings - Fork 13
44 lines (41 loc) · 1.05 KB
/
github_actions.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
name: DPIP
on:
push:
branches: [ "Release" ]
pull_request:
branches: [ "Release" ]
jobs:
Android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.10.6'
- run: flutter pub get
- run: flutter build apk
- run: flutter build appbundle
- name: Upload(apk)
uses: actions/upload-artifact@master
with:
name: "DPIP.apk"
path: build/app/outputs/flutter-apk/*.apk
- name: Upload(aab)
uses: actions/upload-artifact@master
with:
name: "DPIP.aab"
path: build/app/outputs/bundle/release/*.aab
iOS:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
architecture: x64
- run: flutter pub get
- run: flutter build ios --release --no-codesign