ci(publish): SNAPSHOTs to forge Maven registry, releases to both #2
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/scalatags-datastar!2
Loading…
Reference in a new issue
No description provided.
Delete branch "forge-maven-publish"
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?
What
Rewire the Publish workflow so it targets the forge Maven registry for snapshots and both registries for releases:
main→ publish the current-SNAPSHOTto the Forgejo Maven registry (MavenPublishModule). Snapshots no longer go to Sonatype Central (the Central Portal hosts releases only).v*tag → publish the release to the forge and Sonatype Central (PGP-signed, as before).Why
Part of the registry cutover (procedures #597). The containerised Forgejo runner can't see forge's
~/.ivy2/local, so theworks.iterativeSNAPSHOTs it consumes must live in a real registry. The forge's own Maven registry is the home for snapshots; Central stays the home for tagged releases.Credentials
iterative-worksorg-level Actions secrets (already set):MILL_MAVEN_USERNAME/MILL_MAVEN_PASSWORD— forge registry (write:packagetoken)MILL_PGP_SECRET_BASE64/MILL_SONATYPE_USERNAME/MILL_SONATYPE_PASSWORD— Central releasesVerification
The publish mechanism was validated by hand: all six modules published to the forge registry and resolved back anonymously from a clean cache (transitive chain intact). Merging this to
mainis the first end-to-end CI run — it exercises the runner-container → forge network path for the actual upload.actions/upload-artifact@v4+ uses the @actions/artifact v2 backend, which the Forgejo Actions runner does not implement ("not supported on GHES"), failing the build after tests pass. Swap both upload steps to the Forgejo-native code.forgejo.org/forgejo/upload-artifact@v4, mirroring the procedures CI. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>