Follow this guide to release a new version of Eddy. It's for maintainers of drevops/eddy, and it covers the tag push, the signing key, the docs deploy, the dev container images and the checks on a published installer. To change Eddy itself, follow CONTRIBUTING.md.
php install.php deletes this file from generated projects.
Make sure you have the following:
- The maintain or admin role on
drevops/eddy. Thetagsruleset in Repository settings lets only those roles push a tag. - A
mainwith every change of the release merged and every required check passing. - The pull request from the
prepare-eddy-releaseskill, merged. It raises thedrevops/eddy-toolingconstraint to the latest tooling release, updates the dependencies ofcomposer.dev.jsonand the rootpackage.json, and sets the dev container image tag in.devcontainer/devcontainer.jsonto the version. To run it, ask Claude Code to follow.eddy/skills/prepare-eddy-release/SKILL.mdwith the version. - The signing key in
release, the GitHub Actions environment that holds the signing secrets, as Store the signing key describes.
You release a version by pushing its tag. The tag starts Release Eddy installer, which attaches the installer files to the draft release and then publishes it. The draft comes from the Draft release notes workflow, which runs Release Drafter on every push to main to list the merged pull requests.
A version tag is 3 numbers with an optional suffix, such as 5.2.1 or 5.3.0-rc.1, with no v. A published release is immutable, so it takes no new assets. Follow 3 rules for every release:
- Release only by pushing the tag. The Publish release button publishes the draft without the installer, and the only fix is a new version.
- Push the tag from
main. The workflows stop on a tag whose commit isn't onmain. - Push 1 version tag at a time. Every release starts from the same Release Drafter draft.
To release a version:
-
Optional: On the Releases page, click Edit on the draft release and edit its notes. The workflow sets the tag and the title to the version you push.
-
On an up-to-date
main, tag the commit and push the tag:git tag 5.2.1 git push origin 5.2.1
-
On the Actions tab, open the
Release Eddy installer,Release Eddy docsandEddy dev containerruns for the tag. Confirm that all 3 pass. When thereleaseenvironment has required reviewers, approve the run so its build job can read the signing key. -
Open the release. Confirm that it's published with these assets, where
TAGis the version:install.phpeddy-TAG.tar.gzSHA256SUMSSHA256SUMS.asceddy-TAG.intoto.jsonl
The workflow publishes a tag with a suffix as a pre-release, which never becomes the latest release. A version older than the latest release leaves "latest" on the newer one.
Release Eddy installer, defined in .github/workflows/eddy-release-installer.yml, runs 3 jobs. Only the first job reads the signing key, and only the second one writes to the repository.
eddy-release-installer-build runs in the release environment with a read-only token:
- Checks that the tag is a version and that its commit is on
main. - Builds
eddy-TAG.tar.gzfrom the tag withgit archive. GitHub builds its own archives on demand, with no promise that their bytes stay the same, so the release carries an archive of its own. - Stamps
install.phpwith the version and with the URL and SHA-256 checksum of the archive, through.eddy/docs/scripts/stamp-installer.mjs. Then it checks that the installer reports the version and holds the URL and the checksum. - Runs the stamped installer in an empty directory against the local archive. The installer verifies the archive against the stamped checksum and installs an extension.
- Writes
SHA256SUMSfor the installer and the archive. It fetches the key that keys.openpgp.org has confirmed for theRELEASE_GPG_KEY_EMAILaddress, and stops unless it's the key inGPG_PRIVATE_KEY. Then it signs the file asSHA256SUMS.asc, withGPG_PASSPHRASEwhen the key has one, and checks the signature withgpgvagainst the keyserver's copy. - Checks the signature with
.eddy/installer/verify-release.php. The script fetches the key from keys.openpgp.org by its pinned fingerprint and accepts only a signature from that key. Then it checks every file thatSHA256SUMSlists. - Attests the installer, the archive and
SHA256SUMS. It saves the attestation bundle aseddy-TAG.intoto.jsonl. OpenSSF Scorecard reads provenance from release assets only.
eddy-release-installer-publish holds a token that writes releases, and no secret:
- Waits in the
release-drafterconcurrency group, whichDraft release notesruns in too. Release Drafter sets its draft's tag back to its own guess, so the 2 never run at once. - Checks the checksums and the attestations of the files from the build job, and that the tag still points to the commit they came from. It checks the tag again right before it publishes.
- Moves the draft to the pushed tag when Release Drafter guessed another version, or creates a draft when there's none.
- Uploads the 5 files to the draft, then publishes it.
eddy-release-installer-verify reads the published release with a read-only token:
- Downloads the published files and checks the signature, the checksums and the attestations again.
- For the latest release, checks that
https://github.com/drevops/eddy/releases/latest/download/install.phpandhttps://eddy.drevops.com/installserve the published installer byte for byte. - Runs the published installer in an empty directory, so it downloads the archive from the release and verifies it.
The tag also starts the Test workflow. After Test passes, Deploy pushes the tag to drevops/eddy_destination.
To fix a failed run, re-run the failed job from the Actions tab:
- After the build job fails, the draft holds no new file, so a re-run starts over from the same tag.
- A re-run of the publish job passes when the published release already holds the same
install.php. - After the verify job fails, the release stays published and takes no new file. Fix the cause on
mainand release a new version.
The publish job stops on a release published without its files, such as one published with the Publish release button. Release a new version.
Release Eddy docs, defined in .github/workflows/eddy-release-docs.yml, publishes the documentation site to eddy.drevops.com on GitHub Pages:
- On a version tag, it checks that the tag is a version on
main. Then it deploys the site built from the tag, with the tag as the version in the footer. - To deploy a docs change between releases, run the workflow on
mainfrom the Actions tab. The version you type stamps the footer, and it must be an existing tag, such as5.2.1. Without a version, the footer shows thegit describeoutput of the branch, such as5.2.1-3-g1a2b3c4.
The github-pages environment needs a deployment rule for the main branch and 1 of the Tag ref type.
A project that the release installs with a dev container names the release's image, such as ghcr.io/drevops/eddy-devcontainer-php8.3:5.2.1. Eddy dev container, defined in .github/workflows/eddy-devcontainer.yml, publishes those images on the tag:
- Lints the
Dockerfile, then builds the image of each PHP version on an amd64 and an arm64 runner. - Tests each image with goss, and builds, lints and tests a generated project in the images of PHP 8.3 and 8.5.
- Checks that the tag is a version on
main. - Tags each image with the version, and with
latestwhen the version is the newest release without a suffix. Then it attests each image.
The workflow builds the images again from the tag, so a release image passes every test before it gets a tag. It pushes the images without provenance or SBOM manifests, and their attestations stay in GitHub's attestation store, so a package lists only the canary, latest and version tags. Each package of ghcr.io/drevops/eddy-devcontainer-php<version> must be public, so projects can pull its images.
To check the files of a release by hand, run these commands in a clone of drevops/eddy, with the version in place of 5.2.1:
-
Download the release files:
gh release download 5.2.1 --repo drevops/eddy --dir release-check
-
Check the GPG signature and the checksums, with the same script as the workflow:
php .eddy/installer/verify-release.php release-check
-
Check the attestation of the installer against the attached bundle:
gh attestation verify release-check/install.php --bundle release-check/eddy-5.2.1.intoto.jsonl --repo drevops/eddy
Verify the installer shows the checks for users.
The Eddy Release Signing key has the fingerprint 7B8D 3C97 93E0 FF52 EAAB FEC8 E532 2FD0 EC15 511E and expires on 2028-11-09. Its public half is on keys.openpgp.org, confirmed for alex+eddy@drevops.com. The workflow signs with the private half, which it reads from the GPG_PRIVATE_KEY secret. VerifyReleaseTest fails until SIGNING_KEY_FINGERPRINT in .eddy/installer/verify-release.php and the fingerprint in .eddy/CLAUDE.md, README.md and .eddy/docs/content/installation.mdx agree.
keys.openpgp.org returns 1 key for an address, so the signing address belongs to Eddy alone. A plus address such as alex+eddy@drevops.com reaches the same mailbox.
To publish the key and store its secrets in the release environment:
-
Add the signing address to the key as a user ID, unless the key already has it:
gpg --quick-add-uid 7B8D3C9793E0FF52EAABFEC8E5322FD0EC15511E 'Eddy Release Signing <alex+eddy@drevops.com>' -
Upload the public half to keys.openpgp.org:
gpg --export 7B8D3C9793E0FF52EAABFEC8E5322FD0EC15511E | curl -T - https://keys.openpgp.org -
Open the link that the upload prints, and request verification of
alex+eddy@drevops.com. Confirm the address from the email that keys.openpgp.org sends. -
Create the
releaseenvironment:gh api -X PUT repos/drevops/eddy/environments/release
-
Store the private key as
GPG_PRIVATE_KEY:gpg --armor --export-secret-keys 7B8D3C9793E0FF52EAABFEC8E5322FD0EC15511E | gh secret set GPG_PRIVATE_KEY --env release --repo drevops/eddy
-
Store the confirmed address as
RELEASE_GPG_KEY_EMAIL, and the passphrase asGPG_PASSPHRASE. Each command prompts for its value:gh secret set RELEASE_GPG_KEY_EMAIL --env release --repo drevops/eddy gh secret set GPG_PASSPHRASE --env release --repo drevops/eddy
In Settings > Environments > release, limit Deployment branches and tags to tags that match [0-9]*, so only a version tag reaches the key. To approve every release before it reads the key, add yourself under Required reviewers.
Extend the key before it expires. The fingerprint stays the same, so verify-release.php needs no change.
To extend the key by 2 years:
-
Set the new expiry date:
gpg --quick-set-expire 7B8D3C9793E0FF52EAABFEC8E5322FD0EC15511E 2y
-
Upload the extended public half to keys.openpgp.org:
gpg --export 7B8D3C9793E0FF52EAABFEC8E5322FD0EC15511E | curl -T - https://keys.openpgp.org -
Store the extended private key again.
GPG_PRIVATE_KEYstill holds the copy with the old expiry date:gpg --armor --export-secret-keys 7B8D3C9793E0FF52EAABFEC8E5322FD0EC15511E | gh secret set GPG_PRIVATE_KEY --env release --repo drevops/eddy
-
Update the expiry date in Manage the signing key and in
.eddy/CLAUDE.md.
To replace the key with a new one:
- Create the new key.
verify-release.phppins the fingerprint of its primary key, and accepts a signature from that key or from one of its subkeys. - Confirm a second address on the retiring key at keys.openpgp.org. The address moves to the new key in the next step, and a key left with no user ID fails to import into older GnuPG releases, so older Eddy releases stop verifying.
- Publish the new key and store its secrets with the steps in Store the signing key, with its fingerprint in place of the old one. keys.openpgp.org links the address to the newly confirmed key, and releases stop until both secrets hold that key.
- Put the new fingerprint in
verify-release.php, in this file, in.eddy/CLAUDE.md, inREADME.mdand in.eddy/docs/content/installation.mdx. - Add a note about the new key to the release notes of the next version.
The release flow relies on these settings of drevops/eddy:
| Setting | Value |
|---|---|
| Immutable releases | On |
| Secret scanning | On |
| Push protection | On |
| Private vulnerability reporting | On |
| Dependabot alerts | On |
| Default workflow token | Read-only |
main ruleset |
Pull requests and required checks, with no deletion and no force push |
tags ruleset |
Only the maintain and admin roles create, move or delete a tag |
Scaffold's install.sh github command applies the security settings and both rulesets. It reads a token with Administration: write from SCAFFOLD_GITHUB_TOKEN. Its labels and general settings are Scaffold's, so leave them out. Preview the changes with --dry-run:
curl -fsSL https://getscaffold.dev/install.sh | bash -s -- github --github-owner=drevops --github-repo=eddy --no-github-labels --no-github-settings --dry-runTo apply the changes, run the command again without --dry-run.