Skip to content

Commit cb9af8e

Browse files
committed
Add workflow
1 parent 2182752 commit cb9af8e

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

0 commit comments

Comments
 (0)