Skip to content

Commit d49b1a5

Browse files
committed
make artefact upload conditional
1 parent 5d9bab3 commit d49b1a5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/gradle.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
java: [ 21 ]
1717
gradle: [ wrapper, current]
1818
os: [ ubuntu-latest, macos-latest, windows-latest ]
19+
include:
20+
- java: 21
21+
gradle: wrapper
22+
os: ubuntu-latest
23+
upload: true
1924
runs-on: ${{ matrix.os }}
2025
name: Java ${{ matrix.java }}, Gradle ${{ matrix.gradle }} on ${{ matrix.os}}
2126

@@ -45,10 +50,12 @@ jobs:
4550
arguments: build
4651
cache-disabled: true
4752
- name: Upload Artefact
53+
if: ${{ matrix.upload }}
4854
uses: actions/upload-artifact@v4
4955
with:
50-
name: ${{ github.sha }}
51-
path: build/libs/*.jar
56+
path: |
57+
build/libs/*.jar
58+
!build/libs/*sources.jar
5259
built:
5360
runs-on: ubuntu-latest
5461
needs: [build]

0 commit comments

Comments
 (0)