EIT-ALIVE / eitprocessing

Software for electrical impedance tomography data loading, visualization and processing
https://eit-alive.github.io/eitprocessing/
Apache License 2.0
5 stars 1 forks source link

Streamline release process #239

Closed DaniBodor closed 5 months ago

DaniBodor commented 5 months ago

The release process currently works as described in the documentation, but it is somewhat tedious and requires many steps/clicks, etc.

We discussed streamlining this process as follows:

We will probably heavily rely on chatgpt to create this action.

@psomhorst , anything to add to this?

psomhorst commented 5 months ago
DaniBodor commented 5 months ago

Update on this issue:

I have an untested draft of the action in e8c4291. The way it is set up for now is that it can be manually triggered (on Actions tab) using a keyword and fails if that keyword is not patch, minor, or major. I genuinely don't know what to expect of how to give this input, as I have never created a manually triggered action with an input before.

However, I am fairly certain that ultimately this action will fail on the step of pushing onto main, as it is branch protected. I haven't found (yet) how to bypass branch protection by a GitHub action. Something like this may work, but seems complex to set up. Alternatively, rather than a manual trigger on the actions tab, an automatic trigger could be made that recognizes a branch or PR name (e.g. starting with a given keyword/-phrase like release patch) being merged into main? The manual step would then become to merge such a PR into main. However, bumpversion could still not be run from inside the action without branch protection override, so this is also still not ideal.

On a side note: I am also looking into how these can be triggered from another branch than the default one (which is why it's still untested). I believe GitHub CLI needs to be installed for this, as mentioned here.