-
Notifications
You must be signed in to change notification settings - Fork 26
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
[SCHEMATIC-210] Updates publish.yml
for Test PyPi deployments (#1559)
#1560
Conversation
* updates pypi publishing workflow * specify python version explicitly
Is there any documentation update needed to note the version update changes on release? I think we had a confluence page for the release process, contributing.md or the main Readme may also need updates |
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! Cool trick with the repository-url. I'll leave it to @linglp / @GiaJordan / @BryanFauble for final review.
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.
Looks good to me. Thanks for all the hard work!
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! Thanks @BWMac
Quality Gate passedIssues Measures |
Description:
This PR updates
publish.yml
to automatically publish releases to test pypi (on pre-release) and to pypi (on normal release). I also added "trusted publisher" relationships (OIDC) between this repo and both pypi repos so permanent access tokens are no longer required for the CI pipeline to run. While I was working on this, I was having issues with theupdate_version.py
file and @thomasyu888 suggested deprecating it for simplicity so I did that. We will need to update the version inpyproject.toml
when publishing a release from now on (which is what the release instructions already said to do). I tested the workflow on both pre-releases and full releases and it behaved as expected. I subsequently deleted the release I made to pypi prod, but here is the release I made on test pypi.