File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 7979 publish :
8080 name : Publish Artifacts
8181 needs : [build]
82- if : github.event_name != 'pull_request' && (github.ref == 'refs/heads/master') && (github.actor != 'mergify[bot]')
82+ if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master') && (github.actor != 'mergify[bot]')
8383 strategy :
8484 matrix :
8585 os : [ubuntu-latest]
Original file line number Diff line number Diff 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+ )
1619ThisBuild / githubWorkflowPublish := Seq (
1720 WorkflowStep .Sbt (
1821 List (" ciReleaseSonatype" ),
You can’t perform that action at this time.
0 commit comments