Skip to content

Commit

Permalink
Create deploy-web.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc authored Sep 13, 2023
1 parent d7db154 commit be08af7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy-web.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: deploy web on github-page
on:
push:
branches:
- master
jobs:
build:
name: Build Web
env:
my_secret: ${{secrets.commit_secret}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- run: flutter config --enable-web
- run: flutter clean
- run: flutter pub get
- run: flutter build web --release --web-renderer html --base-href /flutter-webrtc-demo/
- run: |
cd build/web
git init
git config --global user.email duanweiwei1982@gmail.com
git config --global user.name cloudwebrtc
git status
git remote add origin https://${{secrets.commit_secret}}@github.com/flutter-webrtc/flutter-webrtc-demo.git
git checkout -b gh-pages
git add --all
git commit -m "update"
git push origin gh-pages -f

0 comments on commit be08af7

Please sign in to comment.