File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
2
3
3
on :
4
- release :
5
- types : [published]
4
+ push :
5
+ branches : main
6
+
7
+ permissions :
8
+ contents : write
6
9
7
10
jobs :
8
11
release :
9
12
runs-on : ubuntu-latest
13
+ if : startsWith(github.ref, 'refs/tags/')
10
14
steps :
11
15
- name : Checkout
12
16
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
24
28
run : ./gradlew shadowJar
25
29
26
30
- name : Upload Release Asset
27
- uses : actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1
28
- env :
29
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
+ uses : softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2
30
32
with :
31
- upload_url : ${{ github.event.release.upload_url }}
32
- asset_path : ./build/libs/split-tests-java.jar
33
- asset_name : split-tests-java-${{ github.event.release.name }}.jar
34
- asset_content_type : application/java-archive
33
+ files : build/libs/split-tests-java.jar
You can’t perform that action at this time.
0 commit comments