Releasing reviewloop¶
One merge publishes everything. release-please keeps a release PR open from Conventional Commits; merging it
tags vX.Y.Z and .github/workflows/release.yml then publishes:
- the package to PyPI (Trusted Publishing, no token),
ghcr.io/tpham1467/reviewloop:<x.y.z>and:<major>(multi-arch, SBOM, SLSA provenance, cosign keyless),- the moving
v<major>git tag thatuses: tpham1467/reviewloop@v0resolves to, - the GitLab CI/CD Catalog release, once the mirror below exists.
The version lives in pyproject.toml; release-please also bumps __version__ in src/reviewloop/__init__.py, the
project's own entry in uv.lock (so uv sync --locked in the image build passes on the release commit) and the
annotated image version in action.yml, templates/reviewloop.yml, the Bitbucket examples and the init snippets. The manifest starts at 0.0.0, so the first release is 0.1.0
(bump-minor-pre-major). Releases created with GITHUB_TOKEN do not trigger other workflows, and neither does the
release PR: close and reopen it, or push an empty commit to its branch, to get CI to run on it.
One-time setup (owner)¶
- PyPI pending publisher. The distribution is named
reviewloop-aibecausereviewloopis taken on PyPI by another project. The import package and the command stayreviewloop. On pypi.org, Publishing, add a pending publisher: project namereviewloop-ai, ownertpham1467, repositoryreviewloop, workflowrelease.yml, environmentpypi. - GitHub environment. Create the
pypienvironment in repository settings (optionally with a required reviewer). - ghcr visibility. After the first image push, set the package
reviewloopto public under the profile's Packages settings and link it to the repository. - Workflow permissions. Settings, Actions, General: allow GitHub Actions to create and approve pull requests (release-please needs it).
- GitHub Marketplace (first listing, manual). Needs the Marketplace developer agreement and 2FA, so it cannot
be automated. Open the latest release on GitHub, tick "Publish this Action to the GitHub Marketplace", pick the
categories and save.
action.ymlalready carries the unique name, description, branding and author. Later releases update the listing from the tags. - GitLab mirror and Catalog. Create a gitlab.com project that mirrors this repository (push mirror or pull
mirror), then Settings, General, Visibility: enable "CI/CD Catalog resource". Add a description to the project;
the Catalog requires one. A tag
vX.Y.Zarriving on the mirror runs thereleasejob in.gitlab-ci.yml, whoserelease:keyword creates the release the Catalog lists, under a new tagX.Y.Zat the same commit (Catalog versions are semantic versions without thev). Users reference it asreviewloop@X.Y.Zorreviewloop@0. If the mirror is set to remove refs missing upstream, exclude these GitLab-only tags. Nothing in the GitHub workflow pushes to GitLab.
Verify a release¶
cosign verify ghcr.io/tpham1467/reviewloop:0.1.0 \
--certificate-identity-regexp '^https://github.com/tpham1467/reviewloop/\.github/workflows/release\.yml@' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com