File tree 1 file changed +31
-0
lines changed
1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments