Sample hosted at flutterweb-101.web.app.
flutter create --platforms=web .
Create a Firebase project
Enable hosting
firebase init
, choose Hosting
and GitHub Action deploys
."public"
to build/web
.flutter build web
.Update .github/workflows
for Flutter
firebase-hosting-
files to include Fluttersteps:
# This has to come before `flutter bulid web`
- uses: subosito/[email protected]
with:
# Defining the channel is optional - I'm using beta
channel: beta
# Setting cache is also optional, although this does speed up builds!
cache: true
- uses: actions/checkout@v2