-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (30 loc) · 850 Bytes
/
build.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
name: publish
on:
push:
branches:
- develop
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/[email protected]
with:
flutter-version: '3.3.9'
channel: 'stable'
- name: 📦 Install Dependencies
run: flutter packages get
- name: 🧹 Format
run: flutter format --set-exit-if-changed .
- name: 📊 Analyze
run: flutter analyze lib test example
- name: 🧪 Run tests
run: flutter test --no-pub
- name: 🔧 Build demo tests
working-directory: ./example/
run: flutter build web
- name: 🚀 Deploy demo website
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: example/build/web/