-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 829 Bytes
/
workflow.yml
File metadata and controls
29 lines (29 loc) · 829 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
name: Flutter Web
on:
push:
branches:
- master
jobs:
build:
name: Build Web
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: subosito/flutter-action@v1
with:
channel: 'dev'
- run: flutter config --enable-web
- run: flutter pub get
- run: flutter build web --release
working-directory: .
- run: |
cd build/web
git init
git config --global user.name comento
git config --global user.email tech@comento.kr
git status
git remote add origin https://${{ github.actor }}:${{ secrets.COMMIT_SECRET }}@github.com/comento/flutter-comento-ui.git
git checkout -b gh-pages
git add --all
git commit -m "update"
git push origin gh-pages -f