Understanding Github Actions And Using Beeware Briefcase In A Github Workflow
This project is for my own understanding and memory, and does the following :
- Uses beeware briefcase to generate appimage file in a github workflow
- shows probably the simplest way to use a github action to create release with a binary installation file
Check the two workflows in the .github/workflows directory of this repo. Both these workflows are set to be run manually.
-
appimage.yml: shows a very simple github workflow for creating the appimage from the code in the repository, and releases it as a draft. This particular project uses beeware briefcase for build , and generates an
Appimage
for linux systems, you can use any build options of choice. Frombriefcase
perspective, The important thing to note here is that briefcase config filepyproject.toml
should be present at the root of the project and the source should be insrc
directory -
workflow2.yml includes all the code in appimage.yml , but goes one step further and takes user input for a tag. Then it uses this info to create a public release with all the files. This is the more useful, but slightly more complex than appimage.yml
-
workflowmulti.yml Includes all the code in above two workflows, but also creates a
.deb
file along with the usual.Appimage
file. Both are created in a single job which is run on a Ubuntu runner as before. This makes it a simple extension of above workflows. Had we needed to create an i installer for Windows, we would have needed a windows runner as well.
© Rahul Singh