This repo is just for some testers. It is written in as easy language as possible so anyone can understand and work with this.
- Fork it.
- Generate your Github Token (Classic) with required permissions and expiration time as needed.
- Copy and save it in safe place.
- Open the forked repo, goto Settings.
- Then head to Secret and variables on left side pane.
- Then select Actions option.
- Under Repository secrets, there is a button New repository secret.
- Click on it, enter Secret name as MY_TOKEN and your github token starting from ghxxxxxxxxxxxxxxxxxxx in Secret section.
- Press Add Secret.
- Open the forked repo, goto Settings.
- Then head to Actions on left side pane.
- Then select General option.
- Click on first radio button and press Save button.
- Open your forked repo, goto .github/workflows/flutter-build.yml.
- Edit it and speicfy the Flutter version in line 20.
- Commit the change.
- Goto Actions Tab, select Flutter Build workflow and Run it.
- It will run for some minutes and you will get the libs in Releases section of your repo.
- To find the correct version needed for our build we can head the Flutter Release Archive.
- Find the Dart version for which you are desiring to build flutter libs.
- Once you find it, see the Flutter version in the same row.
- Rest you know.
Notes:
- There are 2 workflows present in this repo. One creates flutter libs and the other workflow clears the actions and releases section after every 6 hours.
- This doesn't clutter the repo.
The initial workflow file was given by Rajesh khurana. It was pushing the builds to artifacts. The workflow here is the upgraded version, needs 1 env but it pushes the libs along with flutter version to the Releases section of repo making it easier to locate and download files.