Skip to content

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

  1. Runs quality gates:
  2. PHPUnit
  3. Pint (--test)
  4. PHPStan
  5. Builds docs with mkdocs build --strict
  6. Creates GitHub Release notes automatically
  7. Optionally triggers Packagist update webhook

Required secrets

Optional but recommended:

  • PACKAGIST_WEBHOOK_URL

Where to get it:

  1. Open your package on Packagist (queopius/sentinel)
  2. Go to package settings/update section
  3. Copy the generated update webhook URL
  4. Add it as GitHub secret in:
  5. Settings > Secrets and variables > Actions > New repository secret

If this secret is missing, workflow keeps passing and skips Packagist trigger.

  1. Merge to main
  2. Ensure CI and docs workflows are green
  3. Create and push tag vX.Y.Z
  4. Verify GitHub Release is created
  5. Confirm Packagist picked up the new tag