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

chore(ci): only publish to PyPI if a new release was created #38

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

ctreatma
Copy link
Contributor

The semantic release GitHub Action will skip creating a new GitHub release if there are no new releasable changes. This is expected, but the release workflow assumed that there was always a new release to publish to PyPI.

This PR updates the release workflow to move the PyPI publish steps to a separate job that will only run if the release job successfully creates a new release.

@ctreatma ctreatma requested a review from a team as a code owner December 17, 2024 18:06
@ctreatma
Copy link
Contributor Author

Sample run demonstrating that the publish step is skipped, at least, can be found here: https://github.com/equinix/equinix-sdk-python/actions/runs/12380553183

The opposite behavior can be verified on the next release of this SDK.

@ctreatma ctreatma merged commit 7e6877f into main Dec 18, 2024
5 checks passed
@ctreatma ctreatma deleted the check_if_released branch December 18, 2024 16:54
Copy link
Contributor

This PR is included in version 0.7.0 🎉

1 similar comment
Copy link
Contributor

This PR is included in version 0.7.0 🎉

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