This repository uses a manual release.yml workflow. Versions are independent from the other Foil server SDKs.
Configure these GitHub and registry settings:
- Create a protected GitHub environment named
releasewith required reviewer approval. - Create the public package on Packagist and connect it to
abxy-labs/foil-server-php. - Confirm Packagist is configured to sync new GitHub tags from this repository.
- Bump
composer.jsonto the target version in a pull request. - Merge the version bump to
main. - Open GitHub Actions and run
Release. - Set
confirm_versionto the exactcomposer.jsonversion. - Run a
dry_run=truerelease first. - Re-run with
dry_run=falseonce the dry run looks correct and thereleaseenvironment approval is in place.
- reads the release version from
composer.json - reruns the equivalent of the repo checks
- validates the Composer package metadata
- builds a source tarball for the GitHub release
- on real releases:
- creates tag
vX.Y.Z - creates a GitHub Release with the source tarball attached
- creates tag
Packagist should index the package from the public GitHub tag. GitHub Release notes use autogenerated notes. There is no prerelease channel in this phase.