Skip to content

Commit

Permalink
Merge pull request #529 from http4s/publishTags
Browse files Browse the repository at this point in the history
PublishTags
  • Loading branch information
rossabaker authored May 18, 2021
2 parents 6df4c81 + cfac0a1 commit 4ba9cf3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
branches: ['**']
push:
branches: ['**']
tags: [v*]
tags: [v*, v*]

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 6 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ lazy val commonSettings = Seq(

ThisBuild / githubWorkflowJavaVersions := Seq("[email protected]")

ThisBuild / githubWorkflowTargetTags ++= Seq("v*")

// currently only publishing tags
ThisBuild / githubWorkflowPublishTargetBranches :=
Seq(RefPredicate.StartsWith(Ref.Tag("v")))

ThisBuild / githubWorkflowPublishTargetBranches := Seq(
RefPredicate.Equals(Ref.Branch("main"))
)
Expand Down

0 comments on commit 4ba9cf3

Please sign in to comment.