Skip to content

[AI-4145] Add fork-friendly GitHub Packages publishing support#1

Merged
russwyte merged 1 commit intomainfrom
ai-4145-fork-publishing
Mar 27, 2026
Merged

[AI-4145] Add fork-friendly GitHub Packages publishing support#1
russwyte merged 1 commit intomainfrom
ai-4145-fork-publishing

Conversation

@russwyte
Copy link
Copy Markdown
Collaborator

Summary

  • Add env-var-driven GitHub Packages publishing to build.sbt — completely inert without env vars, upstream Maven Central publishing unchanged
  • New publish-github-packages.yml workflow that skips when PUBLISH_PACKAGES_REPO repo variable is unset
  • Forks configure publishing via GitHub repo variables: PUBLISH_PACKAGES_REPO, PUBLISH_ORG, PUBLISH_ORG_NAME

Test plan

  • sbt compile with no env vars — build unchanged
  • sbt "show core/publishTo" without env vars — returns localStaging (Sonatype)
  • With PUBLISH_PACKAGES_REPO set — returns GitHub Packages URL
  • With PUBLISH_ORG=com.iterable — organization overridden correctly
  • sbt clean; scalafmtCheckAll; test — all passing

Add env-var-driven publishing so forks can publish to their own GitHub
Packages repository without modifying build files. Controlled by repo
variables: PUBLISH_PACKAGES_REPO, PUBLISH_ORG, PUBLISH_ORG_NAME.
Includes a publish workflow that is a no-op when variables are unset.
@russwyte russwyte merged commit c05a983 into main Mar 27, 2026
3 checks passed
russwyte added a commit that referenced this pull request Mar 28, 2026
[AI-4145] Add fork-friendly GitHub Packages publishing support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant