-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (31 loc) · 978 Bytes
/
deplpy-web.yaml
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
# This is a basic workflow to help you get started with Actions
name: Build and deploy web app to github pages
on:
push:
branches:
- deploy-web
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- name: 'Clear flutter cache'
run: flutter clean
- name: 'Run flutter pub get'
run: flutter pub get
# - name: 'Run Test(s)'
# run: flutter test
- name: Enable flutter web
run: flutter config --enable-web
- name: 'Build Web App'
run: flutter build web --release
- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/web