File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ paths-ignore :
8
+ - " **.md"
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - name : Git checkout
16
+ uses : actions/checkout@v4
17
+
18
+ - name : Install Flutter and Dart SDK
19
+ uses : subosito/flutter-action@v2
20
+ with :
21
+ channel : " stable"
22
+ cache : true
23
+ cache-key : flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
24
+
25
+ - name : Show Dart SDK version
26
+ run : dart --version
27
+
28
+ - name : Show Flutter SDK version
29
+ run : flutter --version
30
+
31
+ - name : Install Dependencies
32
+ run : flutter pub get
33
+
34
+ - name : Show outdated packages
35
+ run : flutter pub outdated
36
+
37
+ - name : Build web
38
+ run : flutter build web
39
+
40
+ - name : Deploy to GitHub Pages
41
+ uses : peaceiris/actions-gh-pages@v4
42
+ with :
43
+ github_token : ${{ secrets.GITHUB_TOKEN }}
44
+ publish_dir : ./build/web
You can’t perform that action at this time.
0 commit comments