Skip to content
/ flutter_template Public template

Template for a Flutter project, with CI and CD

License

Notifications You must be signed in to change notification settings

Piwakk/flutter_template

Repository files navigation

flutter_template

Template for a Flutter project, with CI and CD.

How to use

  • Replace com.example.flutter_template with your application ID.
  • Add extra platforms with flutter create ..
  • Generate a Personal Access Token for the repo, with read and write access to commit statuses, contents, and deployments, and add it to your repository secrets as GH_TOKEN.

CI (.github/workflows/ci.yml)

  • Runs flutter analyze, dart format and flutter test.
  • The linter is customizable with analysis_options.yaml.

CD (.github/workflows/release.yml)

Miscellaneous

  • Thanks to .gitattributes, all your end-of-lines are converted to LF, except PNGs. If some of your binary files are corrupted, add exceptions to .gitattributes.