jku / repository-playground

Community artifact repository workflow experiments
Other
7 stars 4 forks source link

Separate publish from snapshot. #126

Open kommendorkapten opened 1 year ago

kommendorkapten commented 1 year ago

Today the publish (deploy) happens as a step in either the snapshot or online version bump workflow. Preferably is to have deployment as a single workflow that other workflows can call into. This would also make it easier in the future to force a deployment to recover from a situation where the deployment fails.

One example today: if the snapshot job runs (and successfully updates the main branch), but deployment fails, following snapshot jobs does not publish as the snapshot did not update anything -- main branch is in a good state.

jku commented 1 year ago

As detail from #125:

The upside of option 1 it that it keeps the publish workflow/action quite simple: just handle the the GH artifacts. It does mean both snapshot and online-version-bump have to produce those artifacts though.

jku commented 1 year ago

A related note: we may want to annotate repository publish in the git repo itself. The light weight option is a branch that follows main and is updated in the publish action: the "publish" branch always points to the last commit that has been published.