-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (38 loc) · 1.16 KB
/
build_web_dart.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
39
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: flutter web
on:
push:
branches:
- master
jobs:
build:
name: ceate build web
env:
my_secret: ${{secrets.workpieces_websit_secret}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- uses: erickzanardo/flutter-gh-pages@v7
with:
basehref: /etcdwp/
- run: flutter clean
- run: flutter config --enable-web
- run: flutter pub get
- run: flutter build web --base-href /etcdwp/ --release
- run: |
cd build/web
git init
git config --global user.email zlbfzl@163.com
git config --global user.name zlbfzl
git status
git remote add origin https://${{secrets.workpieces_websit_secret}}@github.com/workpieces/etcdwp.git
git checkout -b gh-pages
git add --all
git commit -m "update"
git push origin gh-pages -f