From b7c42eef86eb798038a9c1813ac8bfd4912d730e Mon Sep 17 00:00:00 2001 From: Daniel Slapman Date: Tue, 12 May 2026 08:50:53 +0200 Subject: [PATCH] Fix publish artifacts step to trigger on tag pushes 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 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c92f64e..8fa5ec2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: run: sbt test - name: Publish artifacts - if: github.ref == 'refs/heads/main' + if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) env: PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} PGP_SECRET: ${{ secrets.PGP_SECRET }}