ci: publish also to the forge Maven registry #3
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/iw-project-support!3
Loading…
Reference in a new issue
No description provided.
Delete branch "forge-registry"
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?
Summary
Adds the iterative-works Forgejo Maven registry as an additional publish target (Central and e-BS Nexus are both kept) and runs the publish automation on the forge runner.
publish.yml): publishes to the forge registry on every push tomain(snapshot) andmill-v*tags (release). Keeps the PGP-signed Maven Central release on tags.publish-sbt.yml, new): publishessbt-iw-plugin-presets+sbt-iw-projectsto the forge registry on every push tomain(snapshot) andv*tags (release). Keeps the e-BS Nexus release on tags. Usessbt/setup-sbt(the runner image has no sbt).IW_PUBLISH_TARGETselects the destination —nexus(default, unchanged local behaviour) orforge; adds forge credentials under realmGitea Package API.Validation
build.sbtpublishToverified locally: default →nexus.e-bs.cz/.../maven-snapshots,IW_PUBLISH_TARGET=forge→ the Forgejo registry endpoint.mainexercises the forge snapshot path for both builds using only the existingMILL_MAVEN_*org secrets (Central/Nexus steps are tag-gated).Before the next release tag
The Central publish must run on the forge runner, so these need to exist as forge org Actions secrets (currently only on GitHub):
MILL_SONATYPE_USERNAME,MILL_SONATYPE_PASSWORD,MILL_PGP_SECRET_BASE64(Central, tagmill-v*)EBS_NEXUS_USERNAME/EBS_NEXUS_PASSWORDalready present (provisioned for iw-support) — the sbt Nexus release (tagv*) reuses them.🤖 Generated with Claude Code