Repository navigation
publish.yml: release by pushing a tag - tests, PyPI, then the GitHub release - #7
Merged
Merged
Conversation
publish.yml runs on a tag vX.Y.Z. It calls tests.yml (all systems and the type check), builds from a commit that is on main and whose version is the tag's, uploads to PyPI, and only then creates the GitHub release, with the files of the package attached and the message of the tag as its notes. The release is last because the Zenodo integration archives a release under a permanent DOI the moment it is published; until now a release made by hand came first, and started the upload to PyPI and the DOI together, tested or not. A run started by hand does the tests and the build and stops. RELEASING.md says how to make a release.
Merged
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.
Until now a release of the CLI was made by clicking "Publish release" on GitHub, which started two things at once: the upload to PyPI (
publish.yml, with no test in front of it) and the Zenodo record, which is permanent. A release with failing tests, or one whose upload to PyPI failed, would still have got its DOI.A release is now made by pushing a tag
vX.Y.Z(RELEASING.md), in this order, each step only if the one before it passed:tests.yml, called: Linux, macOS and Windows, Python 3.11 and 3.14, and the type check;main, the tag must match the version inpyproject.toml, the package builds and passestwine check;pypienvironment andPYPI_API_TOKEN);A release made by hand on GitHub no longer uploads to PyPI. A run started by hand from Actions does steps 1 and 2 and stops.
Tested:
actionlintis clean. A run by hand on this branch (https://github.com/fandango-fuzzer/fanbase-cli/actions/runs/37906449308): all seven test jobs and the build passed in 5 minutes,publishandreleasewere skipped, and nothing went to PyPI or GitHub.Not tested (they only happen on a real tag): the upload from the new artifact layout, and
gh release createwith the package attached and--verify-tag. The first real release through it is their test. A tag that fails before PyPI can be deleted and made again (RELEASING.md).