1
1
on :
2
2
push :
3
3
tags :
4
- - ' * '
4
+ - " * "
5
5
6
6
name : Release Builds
7
7
jobs :
8
- # linux:
9
- # name: Linux
10
- # runs-on: ubuntu-latest
11
- # steps:
12
- # - name: Set up Flutter
13
- # uses: subosito/flutter-action@v2
14
- # with:
15
- # flutter-version: '3.22.2'
16
- # channel: ' stable'
8
+ linux :
9
+ name : Linux
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Set up Flutter
13
+ uses : subosito/flutter-action@v2
14
+ with :
15
+ flutter-version : " 3.24.4 "
16
+ channel : " stable"
17
17
18
- # - uses: actions/checkout@v4
19
- # with:
20
- # path: ' app'
18
+ - uses : actions/checkout@v4
19
+ with :
20
+ path : " app"
21
21
22
- # - name: Install required build tools for linux
23
- # run: |
24
- # sudo apt-get update -y
25
- # sudo apt-get upgrade -y
26
- # sudo apt-get install -y curl git unzip xz-utils zip libglu1-mesa
27
- # sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
22
+ - name : Install required build tools for linux
23
+ run : |
24
+ sudo apt-get update -y
25
+ sudo apt-get upgrade -y
26
+ sudo apt-get install -y curl git unzip xz-utils zip libglu1-mesa
27
+ sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
28
28
29
- # - run: |
30
- # cd app
31
- # flutter config --enable-linux-desktop
32
- # flutter pub get
33
- # flutter build linux --release
34
- # cd build/linux/release
35
- # zip -r linux-release.zip bundle
29
+ - run : |
30
+ cd app
31
+ flutter config --enable-linux-desktop
32
+ flutter pub get
33
+ flutter build linux --release
34
+ cd build/linux/x64 /release
35
+ zip -r linux-release.zip bundle
36
36
37
- # - name: Create linux Release
38
- # uses: ncipollo/release-action@v1
39
- # with:
40
- # artifacts: ' app/build/linux/release/linux-release.zip'
41
- # token: ${{ secrets.TOKEN }}
42
- # allowUpdates: true
37
+ - name : Create linux Release
38
+ uses : ncipollo/release-action@v1
39
+ with :
40
+ artifacts : " app/build/linux/x64/ release/linux-x64.zip,app/build/linux/arm64/ release/linux-arm64 .zip"
41
+ token : ${{ secrets.TOKEN }}
42
+ allowUpdates : true
43
43
44
44
web :
45
45
name : Web
@@ -48,21 +48,20 @@ jobs:
48
48
- name : Set up Flutter
49
49
uses : subosito/flutter-action@v2
50
50
with :
51
- flutter-version : ' 3.22.2'
52
- channel : ' stable'
53
-
51
+ flutter-version : " 3.24.4"
52
+ channel : " stable"
54
53
55
54
- uses : actions/checkout@v4
56
55
with :
57
- path : ' app'
56
+ path : " app"
58
57
59
58
- name : Build web release
60
59
run : |
61
60
cd app
62
61
flutter config --enable-web
63
62
flutter pub get
64
- flutter build web -t lib/main.web.dart --release --no-tree-shake-icons
65
-
63
+ flutter build web -t lib/main.web.dart --release --no-tree-shake-icons --wasm
64
+
66
65
- name : Copy privacy policy
67
66
run : |
68
67
cd app
71
70
- name : Deploy to Firebase
72
71
uses : w9jds/firebase-action@master
73
72
with :
74
- args : deploy --only hosting
73
+ args : deploy --only hosting
75
74
env :
76
- PROJECT_PATH : ' app'
75
+ PROJECT_PATH : " app"
77
76
GCP_SA_KEY : ${{ secrets.GCP_SA_KEY }}
78
77
79
78
android :
@@ -83,17 +82,17 @@ jobs:
83
82
- name : Set up Flutter
84
83
uses : subosito/flutter-action@v2
85
84
with :
86
- flutter-version : ' 3.22.2'
87
- channel : ' stable'
85
+ flutter-version : " 3.22.2"
86
+ channel : " stable"
88
87
89
88
- uses : actions/setup-java@v4
90
89
with :
91
- java-version : ' 17 '
92
- distribution : ' oracle'
90
+ java-version : " 17 "
91
+ distribution : " oracle"
93
92
94
93
- uses : actions/checkout@v4
95
94
with :
96
- path : ' app'
95
+ path : " app"
97
96
- run : |
98
97
cd app
99
98
flutter pub get
@@ -102,7 +101,7 @@ jobs:
102
101
- name : Create Android Release
103
102
uses : ncipollo/release-action@v1
104
103
with :
105
- artifacts : ' app/build/app/outputs/apk/release/app-release.apk'
104
+ artifacts : " app/build/app/outputs/apk/release/app-release.apk"
106
105
token : ${{ secrets.TOKEN }}
107
106
allowUpdates : true
108
107
@@ -113,12 +112,12 @@ jobs:
113
112
- name : Set up Flutter
114
113
uses : subosito/flutter-action@v2
115
114
with :
116
- flutter-version : ' 3.22.2'
117
- channel : ' stable'
115
+ flutter-version : " 3.22.2"
116
+ channel : " stable"
118
117
119
118
- uses : actions/checkout@v4
120
119
with :
121
- path : ' app'
120
+ path : " app"
122
121
123
122
- run : |
124
123
cd app
@@ -131,7 +130,7 @@ jobs:
131
130
132
131
- uses : ncipollo/release-action@v1
133
132
with :
134
- artifacts : ' app/build/macOS/Build/Products/Release/macos-release.zip'
133
+ artifacts : " app/build/macOS/Build/Products/Release/macos-release.zip"
135
134
token : ${{ secrets.TOKEN }}
136
135
allowUpdates : true
137
136
0 commit comments