File tree 2 files changed +15
-4
lines changed
2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -111,8 +111,12 @@ jobs:
111
111
tar xf targets.tar
112
112
rm targets.tar
113
113
114
- - run : sbt ++${{ matrix.scala }} nativeImage
114
+ - run : sbt ++${{ matrix.scala }} ci-release
115
115
116
- - uses : softprops/action-gh-release@v1
116
+ - if : startsWith(github.ref, 'refs/tags/')
117
+ run : sbt ++${{ matrix.scala }} nativeImage
118
+
119
+ - if : startsWith(github.ref, 'refs/tags/')
120
+ uses : softprops/action-gh-release@v1
117
121
with :
118
122
files : target/native-image/spotify-next
Original file line number Diff line number Diff line change @@ -25,10 +25,17 @@ ThisBuild / githubWorkflowPublishTargetBranches := List(RefPredicate.StartsWith(
25
25
ThisBuild / githubWorkflowOSes := Seq (" macos-10.15" )
26
26
27
27
ThisBuild / githubWorkflowPublish := Seq (
28
- WorkflowStep .Sbt (List (" nativeImage" )),
28
+ WorkflowStep .Sbt (
29
+ List (" ci-release" )
30
+ ),
31
+ WorkflowStep .Sbt (
32
+ List (" nativeImage" ),
33
+ cond = Some (" startsWith(github.ref, 'refs/tags/')" )
34
+ ),
29
35
WorkflowStep .Use (
30
36
UseRef .Public (" softprops" , " action-gh-release" , " v1" ),
31
- params = Map (" files" -> " target/native-image/spotify-next" )
37
+ params = Map (" files" -> " target/native-image/spotify-next" ),
38
+ cond = Some (" startsWith(github.ref, 'refs/tags/')" )
32
39
)
33
40
)
34
41
ThisBuild / githubWorkflowGeneratedCI ~= {
You can’t perform that action at this time.
0 commit comments