-
Notifications
You must be signed in to change notification settings - Fork 217
43 lines (35 loc) 路 975 Bytes
/
Copy pathform_bloc_web.yml
File metadata and controls
43 lines (35 loc) 路 975 Bytes
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
39
40
41
42
43
name: Form Bloc Web
on:
push:
branches:
- master
# paths:
# - 'form_bloc_web/**'
# - '.github/workflows/**'
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory: ./form_bloc_web
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.13.1'
channel: 'stable'
- name: Enable Flutter web
run: flutter config --enable-web
working-directory: ${{ env.working-directory }}
- name: Install dependencies
run: flutter packages get
working-directory: ${{ env.working-directory }}
- name: Build web
run: flutter build web --web-renderer html
working-directory: ${{ env.working-directory }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
publish_dir: ./form_bloc_web/build/web