-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (31 loc) · 929 Bytes
/
flutter_web.yml
File metadata and controls
39 lines (31 loc) · 929 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
name: Flutter Web
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
env:
working-directory: ./flutter_intl_with_flutter_bloc_example
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Flutter
uses: subosito/flutter-action@v1
with:
channel: 'dev'
- 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
working-directory: ${{ env.working-directory }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./flutter_intl_with_flutter_bloc_example/build/web