Skip to content

Commit 8286e96

Browse files
committed
Fix release naming
1 parent 02cbb97 commit 8286e96

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
tags:
8-
- 'v*'
97
release:
108
types:
119
- created
@@ -61,12 +59,16 @@ jobs:
6159
if-no-files-found: error
6260
compression-level: 0
6361

62+
- name: Rename the artifact before uploading
63+
run: |
64+
cp build/libs/CustomJsonLibCrossPlatform.jar build/libs/CustomJsonLib.jar
65+
66+
6467
- name: Upload built mod artifact into release
6568
uses: softprops/action-gh-release@v2
6669
if: github.event_name == 'release' && github.event.action == 'created'
6770
with:
68-
files: 'build/libs/CustomJsonLibCrossPlatform.jar'
69-
asset_name: CustomJsonLib.jar
71+
files: 'build/libs/CustomJsonLib.jar'
7072

7173
- name: Publish Artifacts to Maven Repository
7274
if: github.event_name == 'release' && github.event.action == 'created'

0 commit comments

Comments
 (0)