-
Hi, it's me again. I have a few more questions about your template. I hope the questions make sense. I'm just learning about GitHub Actions. It looks like I create .github/worflows and each yml file is a GitHub Action that gets triggered on certain events or can be run manually.
It looks like the conditions on which the installers are built are when a push or a pull is done to main branch. My question here is probably due to my ignorance of Git and GitHub, but only one of these makes sense. If I'm ready for a release, I would merge the selected branches to main, test things out locally, and push it to GitHub. If I read this right, this would run the actions. But I don't understand triggering on a pull request. The Linux version has yet another trigger called workflow_dispatch. I don't know what that is, but why is it only for Linux? I see that the end result is you wind up with assets in the Releases area. I don't understand what controls that bit of magic; how does GitHub know that the installer is an asset? Even more mysterious is how the workflows are tied to a release. I though they were triggered by a push or a pull request. Is it the release process that merges a branch into main and that causes the push or pull? I think I'm missing a lot of conventions that probably explain how all the magic works. Thanks for your patience. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Yup, all of that is GitHub Actions, you can find the docs with Google etc. Look at the "on" section for triggers, you can comment them out with a # character. The workflow_dispatch enables a button to trigger them in the GitHub UI. Just didn't bother putting it on the other jobs yet. You can and should absolutely tweak the jobs to do what you want. RIght out of the gate, you may run out of minutes quickly if you are using a paid plan with a private repo. The release is done via the Update Automatic Release step, with the marvinpinto/action-automatic-releases@latest action. That's what copies the final files to the releases section. All of this is GitHub Actions. All I do in the template is try to show that a) it's possible and b) as a starting place for whatever configuration you want. I'm going to be posting some updates, esp. for adding macOS signing, hopefully this week. |
Beta Was this translation helpful? Give feedback.
Yup, all of that is GitHub Actions, you can find the docs with Google etc.
Look at the "on" section for triggers, you can comment them out with a # character. The workflow_dispatch enables a button to trigger them in the GitHub UI. Just didn't bother putting it on the other jobs yet.
You can and should absolutely tweak the jobs to do what you want. RIght out of the gate, you may run out of minutes quickly if you are using a paid plan with a private repo.
The release is done via the Update Automatic Release step, with the marvinpinto/action-automatic-releases@latest action. That's what copies the final files to the releases section.
All of this is GitHub Actions. All I do in the template i…