refactor(publish): split the workflow in multiple jobs - #173
Merged
Merged
Conversation
|
Great job! No new security vulnerabilities introduced in this pull requestCommunicate with Checkmarx by submitting a PR comment with Checkmarx (@Checkmarx) followed by one of the supported commands. Learn about the supported commands here. |
Erik Schmidt (eschmidtfds)
approved these changes
Sep 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Split the
publish.ymldeployjob into two jobs —deploy(PyPI) andpublish-conda(Anaconda) — so that pre-release (beta) versions can be published to PyPI without also being pushed to Anaconda'smainlabel.Previously, every published GitHub release (including pre-releases) ran the same job, which always uploaded to Anaconda's
mainlabel — the label a plainconda install fds.sdk.utilsresolves to. That's fine for stable releases, but a beta version has no business being handed to every conda user with no opt-in, unlike PyPI where pre-release versions are already excluded by default (pip install --preor an exact==pin is required to get one).Changes:
publish-condais a separate job withneeds: deployandif: ${{ !github.event.release.prerelease }}, so it's skipped entirely when the triggering release is marked as a pre-release.deploynow only builds and publishes to PyPI (uv build/uv publish); the Anaconda-only env vars (ANACONDA_TOKEN,CONDA_ENV_NAME) and the "Setup Conda" / "Publish to Anaconda" steps moved topublish-conda, which checks out the repo again since jobs run on independent runners.permissions: contents: readat the workflow level — neither job needs more than that (checkout only; PyPI/Anaconda publishing use their own secrets, notGITHUB_TOKEN), so this pins it down instead of relying on the org/repo default.To publish a beta going forward: bump
versioninpyproject.tomlto a PEP 440 pre-release (e.g.3.1.0b1), tag it (e.g.v3.1.0b1), and create a GitHub Release with "Set as a pre-release" checked.Links
N/A
Testing
Checklist