pyhf
pyhf copied to clipboard
Add pre-release support to publish workflow
Creating the GitHub pre-release v0.7.0rc1 should have triggered the publish to PyPI workflow, but it didn't. I don't think that there is a pre_release github.event_name
https://github.com/scikit-hep/pyhf/blob/acde7f4ff8d0db2351f5d6e31ff5584e34da0cf0/.github/workflows/publish-package.yml#L104-L105
so we'll need to figure out how release candidate pre-releases can get integrated in.
So seems that I need to learn the github.event API better as there is apparently a github.event.release.prerelease. So I now don't know how github.event_name and github.event.release's attributes differ.
edit Under https://docs.github.com/en/rest/releases/releases#create-a-release there is
prereleasebooleantrueto identify the release as aprerelease.falseto identify the release as a full release. Default:false
Thought this seems to imply that a prerelease is not a published event.action(?).
I think https://github.com/orgs/community/discussions/26281#discussioncomment-3251177 is how to do this.