A new Flutter project.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
- Push to
maintriggers the workflow. - Workflow checks out the repo and builds Flutter web.
- Switches to
deploybranch (creates if not exists). - Copies the web build into
docs/. - Commits and pushes changes back to deploy branch.
- Build outputs into a temporary folder (
web-build). - Switches to
deploybranch.- Creates it if it doesn’t exist.
- Syncs
web-buildtodocs/(this is what GitHub Pages serves from main/docs if you configure Pages, or from root ofdeploybranch if you point Pages there). - Commits only the updated files.
- Pushes to
deploybranch.
- Option 1: Serve from
docs/ondeploybranch- Go to repo → Settings → Pages → Source →
deploy branch / docs folder.
- Go to repo → Settings → Pages → Source →
- Option 2: Serve from root of
deploybranch- Set Pages source →
deploy branch / root
- Set Pages source →