Skip to content
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

CI tweak: use "release" event instead of "tag push" for pypi publishing #631

Merged
merged 4 commits into from
Jan 16, 2024

Conversation

bpkroth
Copy link
Contributor

@bpkroth bpkroth commented Jan 16, 2024

Minor tweak on #626: instead of acting on tag push events, we only act on "release" events. This gives us a chance to fix bad tag pushes (which otherwise don't have much gated checking on them) prior to attempting to publish a version on pypi, which cannot be overwritten (only superseded).

@bpkroth
Copy link
Contributor Author

bpkroth commented Jan 16, 2024

NOTE: The version bump currently in this PR was use for testing on my fork, but should be replaced with the one from #624 after it's merged. I don't think there's any point in publishing this particular patch version release - there's no functional change from the last one.

@bpkroth bpkroth marked this pull request as ready for review January 16, 2024 16:41
@bpkroth bpkroth requested a review from a team as a code owner January 16, 2024 16:41
Copy link
Member

@motus motus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I wonder if there is a way to store version in a single place?

@bpkroth bpkroth merged commit 42a149f into microsoft:main Jan 16, 2024
11 checks passed
@bpkroth bpkroth deleted the ci-release-tweaks branch January 16, 2024 17:13
@bpkroth
Copy link
Contributor Author

bpkroth commented Jan 16, 2024

Looks good! I wonder if there is a way to store version in a single place?

It'd be nice, but no not really. We publish several packages out of the same repo, which is somewhat less common. That's in part what the bumpversion script is for to help us with managing that.

bpkroth added a commit that referenced this pull request Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants