I’ve got a build and deploy workflow that is getting rather complex. I’d like to split it up into pieces, hopefully that are reusable.
I’ve been through the documentation for hours and frankly I’m lost.
There are different auth mechanisms:
- PAT (less granular)
- Deploy Keys (more granular)
There are different action primitives:
- workflows
- jobs
- steps
There are different packaging options:
- Unbundled (just deploy files directly from an action step)
- Github Packages
- Workflow Artifacts
There are different events
- push
- workflow_call
- workflow_dispatch
It’s all feels very complicated and intertwined.
Basically I have several sets of commands I want to run in series, currently:
- Build
- Deploy
But I might want to later add things like Test etc…
I want these to:
- display nicely in the UI
- be able to re-run individual parts
- ideally be able to reuse parts across repos
I don’t want to create access tokens that give access to all repos.
What’s the best way to approach this?