Merge pull request #17 from ramirezsebas/master #16
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
# This file was auto-generated by the Firebase CLI | |
# https://github.com/firebase/firebase-tools | |
name: build and deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: subosito/flutter-action@v1 | |
with: | |
flutter-version: '3.13.7' | |
channel: 'stable' | |
- run: | | |
flutter clean | |
flutter pub get | |
flutter build web --release --web-renderer canvaskit | |
- run: cp -R build/web/* public/ | |
- uses: w9jds/firebase-action@master | |
with: | |
args: deploy --only hosting | |
env: | |
GCP_SA_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_FLUTTERCONF_PY }} |