update. #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: dart-lang/setup-dart@v1 | |
- run: dart pub get | |
- run: dart pub global activate webdev | |
- run: | | |
export PATH="$PATH":"~/.pub-cache/bin" | |
webdev build | |
cd build | |
git init | |
git config --global user.email [email protected] | |
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 |