Skip to content

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

Merged
ctreatma merged 1 commit intomainfrom
check_if_released
Dec 18, 2024
Merged

chore(ci): only publish to PyPI if a new release was created#38
ctreatma merged 1 commit intomainfrom
check_if_released

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
@github-actions
Copy link
Contributor

This PR is included in version 0.7.0 🎉

1 similar comment
@github-actions
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