Showing
1 changed file
with
34 additions
and
0 deletions
.github/workflows/flutter_web.yml
0 → 100644
| 1 | +name: Flutter Web | ||
| 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: 'dev' | ||
| 17 | + - run: | | ||
| 18 | + cd example | ||
| 19 | + flutter config --enable-web | ||
| 20 | + flutter pub get | ||
| 21 | + - run: | | ||
| 22 | + cd example | ||
| 23 | + flutter build web --release --dart-define=FLUTTER_WEB_USE_SKIA=true | ||
| 24 | + - run: | | ||
| 25 | + cd example/build/web | ||
| 26 | + git init | ||
| 27 | + git config --global user.email git@jaimeblasco.com | ||
| 28 | + git config --global user.name jamesblasco | ||
| 29 | + git status | ||
| 30 | + git remote add origin https://${{secrets.commit_secret}}@github.com/jamesblasco/modal_bottom_sheet.git | ||
| 31 | + git checkout -b gh-pages | ||
| 32 | + git add --all | ||
| 33 | + git commit -m "Update web" | ||
| 34 | + git push origin gh-pages -f |
-
Please register or login to post a comment