Skip to content

Restrict CI publish to tag pushes only#43

Merged
gvonness-apolitical merged 1 commit intomainfrom
fix/ci-snapshot-publish
Mar 14, 2026
Merged

Restrict CI publish to tag pushes only#43
gvonness-apolitical merged 1 commit intomainfrom
fix/ci-snapshot-publish

Conversation

@gvonness-apolitical
Copy link
Copy Markdown
Collaborator

Summary

  • CI badge on main shows as failing because the Publish Artifacts job gets a 403 when publishing SNAPSHOT jars to the Maven snapshots repository
  • All tests pass — only the publish step fails
  • Restricts githubWorkflowPublishTargetBranches to tag pushes only (v*), so main branch CI only runs tests
  • Release publishing on tag pushes is unaffected (v0.16.0 published successfully)

Test plan

  • CI passes on this PR (tests, formatting, workflow check)
  • After merge, main branch CI badge turns green
  • Future tag pushes still trigger the publish job

SNAPSHOT publishing on main pushes fails with 403, causing the CI
badge to show as failing even though all tests pass. Limit the
publish job to tag pushes where credentials are configured correctly.
@gvonness-apolitical gvonness-apolitical merged commit 5e1723b into main Mar 14, 2026
9 checks passed
@gvonness-apolitical gvonness-apolitical deleted the fix/ci-snapshot-publish branch March 14, 2026 20:43
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