Releasing a version
How a version goes out: registered in Julia's General registry first, then one signed tag sets off everything else.
The repositories
The project's own repository is a self-hosted Forgejo instance; GitHub (Richard7987/AsteroidPipeline.jl) is a mirror of it, kept identical on every push. Work is pushed to Forgejo only; GitHub runs the workflows. Anything created only on GitHub's side as a git ref (a branch, a tag) is erased by the next mirror sync — which is why nothing here pushes to GitHub and why JuliaRegistries' TagBot is not used.
Steps
Version numbers. The same version in
Project.toml(version),ui/asteroid_ui/__init__.py(__version__),install.sh(VERSION),CITATION.cff(version, withdate-released) and the Status line ofdocs/src/index.md; an entry indocs/src/release-notes.md.Tests.
julia --project=. -e 'using Pkg; Pkg.test()'; the docs build (julia --project=docs docs/make.jl).Push the commit, untagged, to Forgejo:
git push origin main.Julia's General registry, first. On GitHub, once the mirror has the commit, comment
@JuliaRegistrator registeron it. The JuliaRegistrator app opens a pull request in JuliaRegistries/General, whose automatic checks install and load the package on the oldest Julia it supports; once they pass, it is merged (after three days, the first time). If they fail, fix, push and comment again on the new commit: nothing has been tagged yet.Tag, after the registration is merged, the registered commit, on Forgejo — tags must follow the registration, never precede it: a tag for a version the registry turned down names a release that doesn't exist. (TagBot, which tags automatically, can't be used: it pushes to GitHub, and the mirror would erase the tag.)
shgit tag -s v1.0.0 <registered commit> -m "AsteroidPipeline 1.0.0 …" git push origin v1.0.0On GitHub, automatically, once the mirror has the tag:
Workflow Does Release.ymlbuilds the app's wheel (with the library inside) and source distribution, checks the wheel installs, publishes both to PyPI, and attaches them with their checksums to a GitHub release Documenter.ymlrebuilds the documentation, every version ( docs/build_all_versions.sh):stablebecomes this releaseCI.ymlruns the tests on every push tomain, on Julia 1.11 and the newest release, and uploads the newest's coverage to Codecov.Publish
stablewith the next push tomain. GitHub Pages names a deployment after its commit, and the tagged commit was already deployed frommain, so the tag's own deployment reports success but leaves the site as it was:stablechanges once a later commit is deployed. With nothing else to push, an empty commit does it:git commit --allow-empty -m "Docs: publish X.Y.Z as stable".
Set up once
PyPI: a trusted publisher for the project
asteroidpipeline(repositoryRichard7987/AsteroidPipeline.jl, workflowRelease.yml, environmentpypi) — no token is stored anywhere.GitHub: the environments
pypi, andgithub-pagesallowed to deploy frommainand fromv*tags; the JuliaRegistrator app installed on the repository.Codecov: the repository enabled at https://app.codecov.io (signed in with GitHub); uploads authenticate with GitHub's OIDC, no token stored.