Release: a job tells Packagist after the tag reaches the mirror #3
Loading…
Reference in a new issue
No description provided.
Delete branch "pallas/2-forge-release"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (infrastructure)
A tag pushed to git.macula.io reaches Packagist without GitHub, so
composer require macula-io/macula-phpkeeps resolving new releases (macula-php#2). Refs macula-io/forge-setup#30, section 4 step 1; DECIDED 2026-11-24 "Yes, token plan (Recommended)". The release job follows the Supervisor's ruling that replaced the webhook, and its later ruling that the proof needs no tag.What changed
.github/workflows/release.yml(new), on av*tag and onworkflow_dispatch:{"repository":{"url":"https://packagist.org/packages/macula-io/macula-php"}}tohttps://packagist.org/api/update-package?username=beamologist&apiToken=<secret>, withPACKAGIST_TOKENfrom the repository secret. The URL reaches curl as a config on stdin, so the token is never on a command line; noset -x, nocurl -v, and no message echoes it; a refusal prints Packagist's answer into the run log, token masked.A dispatch therefore rehearses the job and stops before the Packagist call: that step is gated on
github.event_name == 'push', never on an input..github/actionlint.yaml(new): declaresdocker, the label the forge's runner serves, so actionlint accepts the ported job.RELEASING.md(new): how a release is cut, the rehearsal, the one-time setup (repository URL, token file, thePACKAGIST_TOKENsecret, Actions on), and the runbook line for the step that waits on the token..github/workflows/ci.yml: every job runs on the forge (runs-on: docker, plain-shell checkout, the forge image by digest); the two cross-repository jobs are out, with the reason where they were.README.md: the dead GitHub CI badge is gone, and a short Releases section points at the mirror and atRELEASING.md.The job runs on the forge's runner:
runs-on: dockerwith the house OTP image at the same pinci.yml's check job uses.Proof
The plain-shell checkout step, extracted from
ci.ymland run against the real forge for15b9dfa: rc=0, that commit checked out and logged. The rest, from the workflows' ownrun:blocks, extracted verbatim from the YAML:v0.11.0):the mirror carries tag v0.11.0, exit 0;WAIT_SECONDS=1):::error::tag v0.0.0-nope did not reach https://pushin.eu/macula-io/macula-php within 1s, exit 1;15b9dfa):the mirror carries commit 15b9dfa…, exit 0;::error::PACKAGIST_TOKEN is not set on this repository, exit 1;Packagist answered 403, the job fails, and the masked answer is printed. Tracing the step withstrace -e trace=execvefound the sentinel in zero execve arguments, with a positive control seen once — the token never reaches a command line.actionlintis clean on the workflow. No PHP changed. Forge Actions are off for this repository until its port lands, so there is no run to cite.What is not proven here
The dispatch itself and the first real tag: both wait on the owner's
~/.config/forge/packagist.token, an admin storing it asPACKAGIST_TOKENwith Actions on, and the lander's dispatch — the runbook line inRELEASING.md.Two open points from the port, both blocked outside this repository and named on macula-php#2:
docsandadvisoriesare out ofci.yml: their target, macula-ci-images, is private on the forge, and Forgejo 15 ignores theif:of auses:job that fails to expand, so no cross-repository call may remain. Back either by making that repository public or by standing the two files in, as the ported mcl-* repositories do.php-testcannot go green untilcomposer buildcan fetch libmacula from something other than GitHub's releases — the macula-go port.There is no macOS, Windows or android job in this repository, so the GitHub-only guard has nothing to apply to.
Release path: Packagist reads the mirror, and a webhook serves a tag at onceto Release: a job tells Packagist after the tag reaches the mirror