Commit 9deacba
committed
ci: upload to the Central Portal on a tag, but never auto-publish
Maven Central is the one registry in this fleet with NO Trusted Publishing, so
unlike PyPI, RubyGems and NuGet this workflow needs real stored secrets. Doppler
(seatlayer-release/prd) stays the source of truth; Actions holds copies.
The workflow uploads and stops. pom.xml already sets <autoPublish>false</autoPublish>
and <waitUntil>validated</waitUntil>, so the deployment lands in the Portal as
validated and waits for a human to press Publish. That is the last reversible
moment — a deployment can be dropped, but a published version is on Central
permanently and can never be replaced or deleted. Automating that click would
trade the only undo we have for a few seconds.
Two things that must agree or the upload fails in ways that read as something
else: setup-java's server-id must match <publishingServerId> in pom.xml (both
'central', or the upload 401s), and the deploy must carry -Prelease, because
signing lives in that profile and Central rejects any artifact without a
detached .asc.
Verified locally before landing: mvn verify is green, and help:evaluate returns
exactly 0.1.0, which is the string the tag check compares against.1 parent f85ed27 commit 9deacba
1 file changed
Lines changed: 78 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
0 commit comments