Repository navigation
Release process
-
Bump the version in
src/Codeception/Codecept.php(const VERSION) and add the release notes toCHANGELOG-5.x.md. Commit and push tomain. -
Wait for the
buildworkflow to pass onmain, then create a new release:- Tag: the plain version number, e.g.
5.3.8(novprefix; the Docker workflow rejects other formats). - Target:
main. - Description: copy the changelog entry.
- When releasing a patch for an older version, untick Set as the latest release.
- Publish the release (a draft doesn't trigger the workflows).
- Tag: the plain version number, e.g.
-
Publishing the release starts two workflows. Check that both pass in Actions:
-
phar: builds
codecept.phar, runs a smoke test, and attachescodecept.pharandcodecept.phar.sha256to the release. -
docker: builds the
trixieandalpineimages, runs a smoke test, and pushescodeception/codeception:<version>andcodeception/codeception:<version>-alpineto Docker Hub. Thelatestandlatest-alpinetags are only moved if this is the highest version released so far, so patch releases of older versions don't overwrite them.
-
phar: builds
The phar is published only on GitHub releases. The phar files on codeception.com are no longer updated. The latest phar is always available at https://github.com/Codeception/Codeception/releases/latest/download/codecept.phar
If a workflow failed, or a phar/image has to be rebuilt for an existing release, run it manually: Actions → phar or docker → Run workflow, enter the release tag (e.g. 5.3.8). The build config (phar/, Dockerfile) is taken from the branch you run the workflow on, and the Codeception sources from the tag.
The docker workflow needs the repository secrets DOCKERHUB_USERNAME and DOCKERHUB_TOKEN.