-
Notifications
You must be signed in to change notification settings - Fork 3
Conversation
Why are these jobs running as part of the PR checks? It seems like the triggers might be incorrect if this is supposed to only run on publishes to |
Co-authored-by: Sean Friedowitz <[email protected]> Signed-off-by: Aaron Gonzales <[email protected]>
Only the draft ones are done when there is a tag. so this should not run if you make a tag-less PR against main. can basically have a branch like "dev-0.2.0" and when it's ready to release, make a PR against main with a tag |
Co-authored-by: Vicki Boykis <[email protected]> Signed-off-by: Aaron Gonzales <[email protected]>
Could you add some instructions in contributing around this and how to add a tag, i.e. is this a git tag? @binaryaaron
|
@@ -0,0 +1,94 @@ | |||
# Build and publish to PyPI |
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.
# Build and publish to PyPI | |
name: Build and publish to PyPI |
Should name the workflow a as a whole, or else it displays weird in the PR checks
I'm a bit confused by the release process here, my thought was that we would create a GH Release with a newly created tag based off the main branch, and that would trigger the publishing actions to real pypi. I'm fine to go with this to give this system a shot, though. We can always tweak down the line if the triggers are not exactly as we'd expect. Edit: This is the release trigger I was thinking of (https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release) |
that'd be fine too! this is more automation than that; if it doesn't work happy to simplify it / create a better overall structure for using GHA. I'll add docs, @veekaybee , ty for the reminder. |
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.
🚀🐍
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.
committable suggestions for consistency in formatting of contributing guide
|
||
## Publishing (automated) | ||
|
||
`.github/workflows/publish.yaml' contains the GitHub Action used to do releases and push wheels to PyPI. |
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.
`.github/workflows/publish.yaml' contains the GitHub Action used to do releases and push wheels to PyPI. | |
`.github/workflows/publish.yaml` contains the GitHub Action used to do releases and push wheels to PyPI. |
Ticks were off, so was not displaying code style
|
||
`.github/workflows/publish.yaml' contains the GitHub Action used to do releases and push wheels to PyPI. | ||
|
||
There are two subcases - draft/dev and the 'real' release. |
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.
There are two subcases - draft/dev and the 'real' release. | |
There are two cases - 'draft' and the 'real' releases. |
|
||
### Draft / Test releases | ||
|
||
If a contributed opens a PR to `main` with a git version tag (e.g., `vX.Y.Z`) , the draft process will start which does the following: |
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.
If a contributed opens a PR to `main` with a git version tag (e.g., `vX.Y.Z`) , the draft process will start which does the following: | |
If a contributer opens a PR to `main` with a git version tag (e.g., `vX.Y.Z`) , the draft process will start which does the following: |
- make a draft release on github. | ||
|
||
|
||
this is to ensure the full process works before merging to main. |
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.
this is to ensure the full process works before merging to main. | |
This is to ensure the full process works before merging to `main`. |
There are two subcases - draft/dev and the 'real' release. | ||
|
||
|
||
### Draft / Test releases |
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.
### Draft / Test releases | |
### Draft releases |
this is to ensure the full process works before merging to main. | ||
|
||
|
||
### Real release |
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.
### Real release | |
### Real releases |
|
||
|
||
|
||
|
||
|
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'll add some followups after this one; i think using |
Adding in the proper GH action file to handle both
The test path should get triggered on PRs to main; the others will only get triggered if we add a tag.