From 11a2b204202db1543776a485db8ab65ff8ba5058 Mon Sep 17 00:00:00 2001 From: Jason Pickens Date: Tue, 9 Mar 2021 11:02:51 +1300 Subject: [PATCH] Publish snapshots of the main branch --- .github/workflows/ci.yml | 2 +- build.sbt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a11093d..e1f26c7 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 f04bbdf..eea5c5d 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