File tree 2 files changed +2
-5
lines changed
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 62
62
publish :
63
63
name : Publish Artifacts
64
64
needs : [build]
65
- if : github.event_name != 'pull_request' && (github.ref == 'refs/heads/main')
65
+ if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
66
66
strategy :
67
67
matrix :
68
68
os : [ubuntu-latest]
Original file line number Diff line number Diff line change @@ -76,11 +76,8 @@ ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
76
76
77
77
// currently only publishing tags
78
78
ThisBuild / githubWorkflowPublishTargetBranches :=
79
- Seq (RefPredicate .StartsWith (Ref .Tag (" v" )))
79
+ Seq (RefPredicate .StartsWith (Ref .Tag (" v" )), RefPredicate . Equals ( Ref . Branch ( " main " )) )
80
80
81
- ThisBuild / githubWorkflowPublishTargetBranches := Seq (
82
- RefPredicate .Equals (Ref .Branch (" main" ))
83
- )
84
81
ThisBuild / githubWorkflowBuild := Seq (
85
82
WorkflowStep .Sbt (List (" validate-ci" ))
86
83
)
You can’t perform that action at this time.
0 commit comments