Skip to content

Commit ec0af1f

Browse files
committed
Allow publishing on tags 'v*'
1 parent 0a8b3c8 commit ec0af1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ci-release.sbt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ ThisBuild / githubWorkflowBuildPreamble += WorkflowStep.Sbt(
1212
name = Some("Check formatting")
1313
)
1414

15-
ThisBuild / githubWorkflowPublishTargetBranches := Seq(RefPredicate.Equals(Ref.Branch("master")))
15+
ThisBuild / githubWorkflowPublishTargetBranches := List(
16+
RefPredicate.StartsWith(Ref.Tag("v")),
17+
RefPredicate.Equals(Ref.Branch("master"))
18+
)
1619
ThisBuild / githubWorkflowPublish := Seq(
1720
WorkflowStep.Sbt(
1821
List("ciReleaseSonatype"),

0 commit comments

Comments
 (0)