Skip to content

Commit fae8a05

Browse files
committed
docs(releasing): real-world gotchas from the 0.11.0 run (PyPI token strip, Maven plugin 'warnings' crash)
1 parent bc11fa8 commit fae8a05

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

docs/RELEASING.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ subsequent releases keyless.)
296296
from the local build with the token in `~/Work/Keys/pypi.txt`:
297297
```bash
298298
cd server/python # after the `uv build` above produced dist/
299-
UV_PUBLISH_TOKEN="$(sed -n '4p' ~/Work/Keys/pypi.txt)" uv publish dist/*
299+
# the token is line 4 of the key file, AFTER the "secret: " label — strip it or you get a 403:
300+
UV_PUBLISH_TOKEN="$(sed -n '4p' ~/Work/Keys/pypi.txt | sed 's/^secret:[[:space:]]*//')" uv publish dist/*
300301
```
301302
(When #36 is fixed, switch to **Actions → publish-python → Run workflow** / a `python-v<version>` tag.)
302303
4. **Verify:** `curl -s https://pypi.org/pypi/metaobjects/json | python3 -c "import sys,json;print(json.load(sys.stdin)['info']['version'])"`.
@@ -322,6 +323,18 @@ maintainer's GPG key.
322323
> Gotchas: Maven Central versions are immutable (like the others); `groupId` ownership is already
323324
> verified for `com.metaobjects`; a missing GPG key or expired Central token fails the deploy with
324325
> an auth error, not a clear message.
326+
>
327+
> **`central-publishing-maven-plugin 0.6.0` crashes COSMETICALLY** (`UnrecognizedPropertyException:
328+
> "warnings"` while parsing Sonatype's response) — `mvn` exits non-zero, but the bundle DID publish
329+
> (all modules go live on Central via autoPublish). Do **not** blindly re-run (versions are
330+
> immutable) — first VERIFY:
331+
> ```bash
332+
> for m in metadata om omdb-ktx render codegen-spring spring-boot-starter; do
333+
> curl -s -o /dev/null -w "%{http_code} metaobjects-$m\n" \
334+
> "https://repo1.maven.org/maven2/com/metaobjects/metaobjects-$m/<version>/metaobjects-$m-<version>.pom"; done
335+
> ```
336+
> If all are `200`, the release is out — the error was just the response parse. Bump the plugin to
337+
>`0.7.0` to stop the crash on the next release.
325338
326339
**Versions are not unified across languages** — TS, C#, and Python are on the `0.9.x` line, the
327340
Java/Kotlin module line is on the `7.2.x` track. Don't force one number. The cross-language contract

0 commit comments

Comments
 (0)