Skip to content

Commit

Permalink
Fix publication of tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilquist committed Nov 9, 2020
1 parent 9d4c203 commit cf42825
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
publish:
name: Publish Artifacts
needs: [build]
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop')
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/v'))
strategy:
matrix:
os: [ubuntu-latest]
Expand Down
5 changes: 3 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ addCommandAlias(
addCommandAlias("testJVM", ";coreJVM/test;io/test;reactiveStreams/test;benchmark/test")
addCommandAlias("testJS", "coreJS/test")

ThisBuild / baseVersion := "2.5"
ThisBuild / baseVersion := "2.4"

ThisBuild / organization := "co.fs2"
ThisBuild / organizationName := "Functional Streams for Scala"
Expand All @@ -24,7 +24,8 @@ ThisBuild / githubWorkflowJavaVersions := Seq("[email protected]")

ThisBuild / githubWorkflowPublishTargetBranches := Seq(
RefPredicate.Equals(Ref.Branch("main")),
RefPredicate.Equals(Ref.Branch("develop"))
RefPredicate.Equals(Ref.Branch("develop")),
RefPredicate.StartsWith(Ref.Tag("v"))
)

ThisBuild / githubWorkflowBuild := Seq(
Expand Down

0 comments on commit cf42825

Please sign in to comment.