diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8839aa..df3458b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,7 +71,7 @@ jobs: publish: name: Publish Artifacts needs: [build] - if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v')) + if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) strategy: matrix: os: [ubuntu-latest] diff --git a/build.sbt b/build.sbt index 43c42db..174b0aa 100644 --- a/build.sbt +++ b/build.sbt @@ -76,7 +76,7 @@ inThisBuild( ) ) ), - githubWorkflowPublishTargetBranches := List(RefPredicate.StartsWith(Ref.Tag("v"))), + githubWorkflowPublishTargetBranches += RefPredicate.StartsWith(Ref.Tag("v")), githubWorkflowTargetTags ++= List("v*"), pgpSigningKey := Some("0x8DB7DFA142551359!"), // This needs to be set otherwise the GitHub workflow plugin gets confused about which