Ci
Compiling your app on every supported OS is annoying. Let's use GitHub Actions to compile our app for us. You can use any CI system of course, the procedure will be similar.
- Upload your sample app to GitHub.
- Delete the inputs section of your config and replace it with this:
windows.amd64.inputs += artifacts/windows linux.amd64.inputs += artifacts/build-linux-amd64.tar mac.amd64.inputs += artifacts/build-macos-amd64.tar mac.aarch64.inputs += artifacts/build-macos-aarch64.tar
- Add a build workflow file to
.github/workflows
and commit/push it. It should look like thebuild.yml
file on this example. - Locate and copy the value of your root key.
- Create a GitHub Encrypted Secret named SIGNING_KEY, and paste the value copied above (without the surrounding quotes).
- Add a deploy workflow file to
.github/workflows
and commit/push it. It should look like thedeploy-to-gh.yml
file on this example.
Note
- This deploy workflow in this example will release your app to GitHub Releases. To deploy via SSH to a private server instead, you can use a workflow like the
deploy-to-ssh.yml
file on this example. Take note of the additional secrets necessary for that workflow. - As an alternative, you can build on GitHub Actions and run Conveyor outside, say, from your development machine.
- Explore the Conveyor/Flutter demo repository to see how it all fits together.