-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix github actions for non-release tags #235
Conversation
Codecov Report
@@ Coverage Diff @@
## master #235 +/- ##
=======================================
Coverage 87.57% 87.57%
=======================================
Files 43 43
Lines 1916 1916
=======================================
Hits 1678 1678
Misses 238 238
Continue to review full report at Codecov.
|
@CasperWA was much more diligent than me when making releases. The PR's for the tagged commits have all the changes summarised (see the 0.6 tag). This looks like a sensible way of proceeding though! EDIT: unfortunately it seems like you can't edit the description of a release post hoc. |
Yeah, I thought to at least put in the effort for each release, then it would be easy later to do proper GitHub releases, as well as add a CHANGELOG.md or something. |
You can if you make it a proper release on GitHub. Go to |
@@ -5,6 +5,13 @@ on: | |||
tags: | |||
# After vMajor.Minor.Patch _anything_ is allowed (without "/") ! | |||
- v[0-9]+.[0-9]+.[0-9]+* | |||
branches: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know that this will work, but the release
should do it, I belieeve.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The combination of both do it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we test it with some a pre-release tag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(after merging)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can just do a patch release v0.7.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The combination of both do it.
I'm not sure the github actions logic work this way, is my only concern. It's not AND statements, but rather OR as I understand it, but I may definitely be wrong, since it also seems to update a bit at the moment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing the actions run (here) it seems clear it's an OR logic, i.e., the workflow ran on a push to the branch master
. But didn't release on PyPI only due to the check in the code that the version in __init__.py
doesn't match.
Weird, assumed it would republish/duplicate the release based on the options I was given, but it has just updated it fine. So 0.6 and 0.7 now have the markdown changelogs. I don't think we need to worry about the others. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, let's test it once it's merged though with 0.7.1. Would you mind squash merging it @shyamd?
So I think this doesn't work. However, there are two options as I understand it:
Personally, I vote to try the second option first, and if it's not possible, then turn to option one? |
Let's try the second option. |
This should fix #229 and ensure that the release workflow only runs on tags made via the release tab on Github. We should also start including changelog summaries in those release descriptions.