diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d9636195d..ef098e193 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,7 +97,7 @@ jobs: publish: name: Publish Artifacts needs: [build] - if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/heads/series/')) + if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v')) strategy: matrix: os: [ubuntu-latest] diff --git a/build.sbt b/build.sbt index 3c2e82ea9..acb521413 100644 --- a/build.sbt +++ b/build.sbt @@ -211,7 +211,7 @@ ThisBuild / githubWorkflowArtifactUpload := false ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("8"), JavaSpec.temurin("17")) ThisBuild / githubWorkflowPublishTargetBranches := - Seq(RefPredicate.StartsWith(Ref.Branch("series/"))) + Seq(RefPredicate.StartsWith(Ref.Tag("v"))) ThisBuild / githubWorkflowPublish := Seq( WorkflowStep.Sbt(