Release and Packagist Automation¶
Queopius Sentinel includes .github/workflows/release.yml with automated release steps.
Trigger¶
The workflow runs when you push a SemVer tag:
git tag v1.0.0
git push origin v1.0.0
It can also be launched manually with workflow_dispatch.
What it does¶
- Runs quality gates:
- PHPUnit
- Pint (
--test) - PHPStan
- Builds docs with
mkdocs build --strict - Creates GitHub Release notes automatically
- Optionally triggers Packagist update webhook
Required secrets¶
Optional but recommended:
PACKAGIST_WEBHOOK_URL
Where to get it:
- Open your package on Packagist (
queopius/sentinel) - Go to package settings/update section
- Copy the generated update webhook URL
- Add it as GitHub secret in:
Settings > Secrets and variables > Actions > New repository secret
If this secret is missing, workflow keeps passing and skips Packagist trigger.
Recommended release flow¶
- Merge to
main - Ensure CI and docs workflows are green
- Create and push tag
vX.Y.Z - Verify GitHub Release is created
- Confirm Packagist picked up the new tag