Skip to content

Commit dba2c84

Browse files
committed
Update workflows
1 parent 43ddfaf commit dba2c84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ jobs:
7676
run: sbt '++ ${{ matrix.scala }}' docs/mdoc
7777

7878
- name: Make target directories
79-
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
79+
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v'))
8080
run: mkdir -p modules/core/.native/target modules/core/.js/target modules/core/.jvm/target project/target
8181

8282
- name: Compress target directories
83-
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
83+
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v'))
8484
run: tar cf targets.tar modules/core/.native/target modules/core/.js/target modules/core/.jvm/target project/target
8585

8686
- name: Upload target directories
87-
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
87+
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v'))
8888
uses: actions/upload-artifact@v4
8989
with:
9090
name: target-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.scala }}
@@ -93,7 +93,7 @@ jobs:
9393
publish:
9494
name: Publish Artifacts
9595
needs: [build]
96-
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
96+
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v'))
9797
strategy:
9898
matrix:
9999
os: [ubuntu-22.04]

0 commit comments

Comments
 (0)