Skip to content

Commit 3e7ebc3

Browse files
committed
Regenerating workflow
1 parent 9d21e31 commit 3e7ebc3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ jobs:
7979
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' doc
8080

8181
- 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')
8383
run: mkdir -p core/.native/target core/.js/target core/.jvm/target project/target
8484

8585
- 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')
8787
run: tar cf targets.tar core/.native/target core/.js/target core/.jvm/target project/target
8888

8989
- 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')
9191
uses: actions/upload-artifact@v4
9292
with:
9393
name: target-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.scala }}-${{ matrix.project }}
@@ -96,7 +96,7 @@ jobs:
9696
publish:
9797
name: Publish Artifacts
9898
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')
100100
strategy:
101101
matrix:
102102
os: [ubuntu-latest]

0 commit comments

Comments
 (0)