From 105ee59f5083f8f994d51774b9b2278c8eff96c3 Mon Sep 17 00:00:00 2001 From: CloudWebRTC Date: Mon, 27 Nov 2023 10:55:37 +0800 Subject: [PATCH] Create deploy-web.yml --- .github/workflows/deploy-web.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/deploy-web.yml diff --git a/.github/workflows/deploy-web.yml b/.github/workflows/deploy-web.yml new file mode 100644 index 0000000..a42f25f --- /dev/null +++ b/.github/workflows/deploy-web.yml @@ -0,0 +1,31 @@ +name: deploy web on github-page +on: + push: + branches: [main] + +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: | + webdev build + cd build + 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/dart-video-element-flicker-demo.git + git checkout -b gh-pages + git add --all + git commit -m "update" + git push origin gh-pages -f