chore: fix analysis issues for flutter 3.1.3 (#376) #21
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: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build Web | |
env: | |
my_secret: ${{secrets.commit_secret}} | |
defaults: | |
run: | |
working-directory: modal_bottom_sheet/example | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📚 Git Checkout | |
uses: actions/checkout@v3 | |
- name: 🐦 Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
cache: true | |
- name: 📦 Install Dependencies | |
run: | | |
flutter pub global activate very_good_cli | |
very_good --analytics false | |
very_good packages get --recursive | |
- name: 🛠 Build web | |
run: flutter build web --dart-define=FLUTTER_WEB_USE_SKIA=true | |
- name: 🚀 Deploy to github pages | |
run: | | |
cd build/web | |
git init | |
git config --global user.email [email protected] | |
git config --global user.name jamesblasco | |
git status | |
git remote add origin https://${{secrets.commit_secret}}@github.com/jamesblasco/modal_bottom_sheet.git | |
git checkout -b gh-pages | |
git add --all | |
git commit -m "Update web" | |
git push origin gh-pages -f |