Skip to content

Fix publish artifacts step to trigger on tag pushes#65

Merged
danslapman merged 2 commits into
mainfrom
fix-publish-on-tag
May 12, 2026
Merged

Fix publish artifacts step to trigger on tag pushes#65
danslapman merged 2 commits into
mainfrom
fix-publish-on-tag

Conversation

@danslapman
Copy link
Copy Markdown
Member

Summary

  • The Publish artifacts step had if: github.ref == 'refs/heads/main', which only matched branch pushes — tag-triggered builds (releases) were silently skipped
  • Updated condition to github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')), matching the approach in sbt-ci-release's own release.yml
  • The github.event_name == 'push' guard ensures secrets are never exposed during pull request builds

Test plan

  • Merge to main → snapshot published (existing behaviour, unchanged)
  • Push a v* tag → release published to Maven Central via sbt ci-release

🤖 Generated with Claude Code

The previous condition only matched refs/heads/main, so tag-triggered
builds (releases) never ran sbt ci-release. Updated to also match tag
refs, matching the approach recommended by sbt-ci-release docs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@danslapman danslapman added the bug Something isn't working label May 12, 2026
@danslapman danslapman merged commit 12c3502 into main May 12, 2026
5 checks passed
@danslapman danslapman deleted the fix-publish-on-tag branch May 12, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant