Skip to content

Commit be08af7

Browse files
authored
Create deploy-web.yaml
1 parent d7db154 commit be08af7

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/deploy-web.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: deploy web on github-page
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
build:
8+
name: Build Web
9+
env:
10+
my_secret: ${{secrets.commit_secret}}
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v1
14+
- uses: subosito/flutter-action@v1
15+
with:
16+
channel: "stable"
17+
- run: flutter config --enable-web
18+
- run: flutter clean
19+
- run: flutter pub get
20+
- run: flutter build web --release --web-renderer html --base-href /flutter-webrtc-demo/
21+
- run: |
22+
cd build/web
23+
git init
24+
git config --global user.email duanweiwei1982@gmail.com
25+
git config --global user.name cloudwebrtc
26+
git status
27+
git remote add origin https://${{secrets.commit_secret}}@github.com/flutter-webrtc/flutter-webrtc-demo.git
28+
git checkout -b gh-pages
29+
git add --all
30+
git commit -m "update"
31+
git push origin gh-pages -f

0 commit comments

Comments
 (0)