- Notifications
You must be signed in to change notification settings - Fork0
ishitgami/flutter-github-action
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository contains a GitHub Actions workflow for building and releasing a Flutter project. The workflow is triggered on every push to themain branch. It performs linting using ShellCheck and builds the Flutter project, creating an APK for release.
The workflow consists of two jobs:
lint_shellcheck
- Checks the shell scripts using the ShellCheck action.
build
- Sets up the Flutter environment.
- Caches Flutter and Java dependencies for faster builds.
- Builds the Flutter project and creates an APK for release.
- Pushes the release artifacts using the ncipollo/release-action.
To use this workflow, follow these steps:
- Ensure your Flutter project is configured correctly.
- Add or modify the Flutter and Java dependencies in the
cachesection of the workflow. - Set up the required GitHub Secrets, including
TOKEN_TESTfor pushing releases. - Push changes to the
mainbranch.
You can customize this workflow based on your project requirements:
- Adjust the Flutter version in the
flutter-versionfield. - Modify the linting or build steps to fit your project structure.
- Update the release tag format in the
tagfield of the "Push to Releases" step.
- ludeeus/action-shellcheck: Action for linting shell scripts.
- subosito/flutter-action: Action for setting up the Flutter environment.
- ncipollo/release-action: Action for pushing release artifacts.
This workflow is licensed under theMIT License.
About
Automate your Flutter project's build process with GitHub Actions workflow.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.