File tree 2 files changed +6
-9
lines changed
2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ jobs:
117
117
publish-native :
118
118
name : Publish native images
119
119
needs : [build]
120
- if : github.event_name != 'pull_request' && ( startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main ')
120
+ if : startsWith(github.ref, 'refs/tags/')
121
121
strategy :
122
122
matrix :
123
123
os : [macos-10.15]
@@ -157,12 +157,10 @@ jobs:
157
157
tar xf targets.tar
158
158
rm targets.tar
159
159
160
- - if : startsWith(github.ref, 'refs/tags/')
161
- run : sbt ++${{ matrix.scala }} nativeImage
160
+ - run : sbt ++${{ matrix.scala }} nativeImage
162
161
163
162
- run : mv target/native-image/spotify-next target/native-image/spotify-next-${{ matrix.os }}
164
163
165
- - if : startsWith(github.ref, 'refs/tags/')
166
- uses : softprops/action-gh-release@v1
164
+ - uses : softprops/action-gh-release@v1
167
165
with :
168
166
files : target/native-image/spotify-next
Original file line number Diff line number Diff line change @@ -38,12 +38,12 @@ ThisBuild / githubWorkflowGeneratedCI ~= {
38
38
id = " publish-native" ,
39
39
name = " Publish native images" ,
40
40
oses = List (" macos-10.15" ),
41
+ cond = Some (" startsWith(github.ref, 'refs/tags/')" ),
41
42
steps = job.steps.flatMap {
42
43
case step if step.id.contains(" release" ) =>
43
44
List (
44
45
WorkflowStep .Sbt (
45
- List (" nativeImage" ),
46
- cond = Some (" startsWith(github.ref, 'refs/tags/')" )
46
+ List (" nativeImage" )
47
47
),
48
48
WorkflowStep .Run (
49
49
List (
@@ -52,8 +52,7 @@ ThisBuild / githubWorkflowGeneratedCI ~= {
52
52
),
53
53
WorkflowStep .Use (
54
54
UseRef .Public (" softprops" , " action-gh-release" , " v1" ),
55
- params = Map (" files" -> " target/native-image/spotify-next" ),
56
- cond = Some (" startsWith(github.ref, 'refs/tags/')" )
55
+ params = Map (" files" -> " target/native-image/spotify-next" )
57
56
)
58
57
)
59
58
case step =>
You can’t perform that action at this time.
0 commit comments