Add flutter web support #1
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 to Github Pages | |
on: | |
push: | |
branches: [master] | |
paths-ignore: | |
- '**/README.md' | |
pull_request: | |
branches: [master] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
FLAVOR: "production" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: subosito/flutter-action@v1 | |
- run: flutter pub get | |
- run: flutter packages pub run build_runner build --delete-conflicting-outputs | |
- uses: bluefireteam/flutter-gh-pages@v7 | |
with: | |
baseHref: /flutter-project-template-bloc/ | |
customArgs: --dart-define="flavor=$FLAVOR" |