Skip to content

ci(cicd-wkflow): separate deployment from release job to enable job re-runs #1086

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

Conversation

codejedi365
Copy link
Contributor

Purpose

  • Separate out deployment from release jobs in pipeline

Rationale

It is better design to have a separate deploy job rather than one job to release and deploy because if your deployment fails for some reason (auth token or other mishap) then you have a release tag on the repository but no distribution artifact. Normally you might just update the auth token but this time you have to reverse most of the release job to do it again rather than just re-running the deployment. I have also found this reigns true if you have multiple deployment locations. You should have each deployment location as a separate job so they can independently fail (and not prevent others) and you can re-deploy (via job re-run) them individually if needed. It can be difficult to republish as most registries will fail if it has already an existing artifact of the same version.

How did you test?

How to Verify

@codejedi365 codejedi365 merged commit f148833 into python-semantic-release:master Nov 6, 2024
@codejedi365 codejedi365 deleted the ci/separate-deploy-job branch November 6, 2024 03:56
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.

1 participant