File tree 3 files changed +74
-41
lines changed
3 files changed +74
-41
lines changed Original file line number Diff line number Diff line change
1
+ name : build-android
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ build-android-apk :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Clone repository
11
+ uses : actions/checkout@v4
12
+
13
+ - name : Cache Flutter
14
+ uses : actions/cache@v3
15
+ id : flutter-cache
16
+ with :
17
+ key : $GITHUB_SHA-flutter
18
+ path : ~/.flutter
19
+
20
+ - name : Cache Gradle
21
+ uses : actions/cache@v3
22
+ id : gradle-cache
23
+ with :
24
+ key : $GITHUB_SHA-gradle
25
+ path : ~/.gradle
26
+
27
+ - name : Set up JDK 19
28
+ uses : actions/setup-java@v4
29
+ with :
30
+ java-version : " 19"
31
+ distribution : ' temurin'
32
+ cache : " gradle"
33
+
34
+ - name : Set up Flutter
35
+ uses : subosito/flutter-action@v2
36
+ with :
37
+ channel : stable
38
+ cache : true
39
+
40
+ - run : flutter pub get
41
+
42
+ - run : flutter build apk
Original file line number Diff line number Diff line change 1
- name : build-app
1
+ name : build-ios
2
2
3
3
on :
4
4
workflow_dispatch :
5
5
6
6
jobs :
7
- build-android :
8
- runs-on : ubuntu-latest
9
- steps :
10
- - name : Clone repository
11
- uses : actions/checkout@v4
12
-
13
- - name : Cache Flutter
14
- uses : actions/cache@v2
15
- id : flutter-cache
16
- with :
17
- key : $GITHUB_SHA-flutter
18
- path : ~/.flutter
19
-
20
- - name : Cache Gradle
21
- uses : actions/cache@v2
22
- id : gradle-cache
23
- with :
24
- key : $GITHUB_SHA-gradle
25
- path : ~/.gradle
26
-
27
- - name : Set up JDK 19
28
- uses : actions/setup-java@v4
29
- with :
30
- java-version : " 19"
31
- distribution : ' temurin'
32
- cache : " gradle"
33
-
34
- - name : Set up Flutter
35
- uses : subosito/flutter-action@v2
36
- with :
37
- channel : stable
38
- cache : true
39
-
40
- - run : flutter pub get
41
-
42
- - run : flutter build apk
43
-
44
7
build-ios :
45
8
runs-on : macos-latest
46
9
steps :
47
10
- name : Clone repository
48
11
uses : actions/checkout@v4
49
12
50
13
- name : Cache CocoaPods
51
- uses : actions/cache@v2
14
+ uses : actions/cache@v3
52
15
id : cocoa-pods-cache
53
16
with :
54
17
key : $GITHUB_SHA-cocoa-pods
55
18
path : ~/Library/Caches/CocoaPods
56
19
57
20
- name : Cache Xcode Derived Data
58
- uses : actions/cache@v2
21
+ uses : actions/cache@v3
59
22
id : xcode-derived-data-cache
60
23
with :
61
24
key : $GITHUB_SHA-xcode-derived-data
62
25
path : ~/Library/Developer/Xcode/DerivedData
63
26
64
27
- name : Cache Flutter
65
- uses : actions/cache@v2
28
+ uses : actions/cache@v3
66
29
id : flutter-cache
67
30
with :
68
31
key : $GITHUB_SHA-flutter
Original file line number Diff line number Diff line change
1
+ name : Publish to Github Pages
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ build-and-deploy-web :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Clone repository
11
+ uses : actions/checkout@v4
12
+ - name : Cache Flutter
13
+ uses : actions/cache@v3
14
+ id : flutter-cache
15
+ with :
16
+ key : $GITHUB_SHA-flutter
17
+ path : ~/.flutter
18
+ - name : Set up Flutter
19
+ uses : subosito/flutter-action@v2
20
+ with :
21
+ channel : stable
22
+ cache : true
23
+ # - name: Build and deploy to GH pages
24
+ # uses: bluefireteam/flutter-gh-pages@v7
25
+ - run : flutter pub get
26
+ - run : flutter build web --release
27
+ - name : Deploy to GH pages
28
+ uses : peaceiris/actions-gh-pages@v4
You can’t perform that action at this time.
0 commit comments