File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -79,15 +79,15 @@ jobs:
79
79
run : sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' doc
80
80
81
81
- name : Make target directories
82
- if : github.event_name != 'pull_request' && (github.ref == 'refs/heads/main')
82
+ if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
83
83
run : mkdir -p core/.native/target core/.js/target core/.jvm/target project/target
84
84
85
85
- name : Compress target directories
86
- if : github.event_name != 'pull_request' && (github.ref == 'refs/heads/main')
86
+ if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
87
87
run : tar cf targets.tar core/.native/target core/.js/target core/.jvm/target project/target
88
88
89
89
- name : Upload target directories
90
- if : github.event_name != 'pull_request' && (github.ref == 'refs/heads/main')
90
+ if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
91
91
uses : actions/upload-artifact@v4
92
92
with :
93
93
name : target-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.scala }}-${{ matrix.project }}
96
96
publish :
97
97
name : Publish Artifacts
98
98
needs : [build]
99
- if : github.event_name != 'pull_request' && (github.ref == 'refs/heads/main')
99
+ if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
100
100
strategy :
101
101
matrix :
102
102
os : [ubuntu-latest]
You can’t perform that action at this time.
0 commit comments