Skip to content

Commit e95e8f0

Browse files
committed
Use v2 of modrinth publish action
1 parent 0aa6d92 commit e95e8f0

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,24 @@ jobs:
4444
run: mvn clean package
4545

4646
- name: Upload to release
47-
uses: JasonEtco/upload-to-release@master
47+
uses: cloudnode-pro/release-upload-[email protected]
4848
with:
49-
args: target/CloudnodeMSG-${{ steps.version.outputs.VERSION }}.jar application/java-archive
50-
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
gh-token: ${{ github.token }}
50+
files: target/CloudnodeMSG-${{ steps.version.outputs.VERSION }}.jar; type=application/java-archive
5251

5352
- name: Upload to Modrinth
54-
uses: cloudnode-pro/modrinth-publish@1.0.0
53+
uses: cloudnode-pro/modrinth-publish@v2
5554
with:
5655
token: ${{ secrets.MODRINTH_TOKEN }}
57-
project: 5Ce4fxJB
58-
file: target/CloudnodeMSG-${{ steps.version.outputs.VERSION }}.jar
56+
project: ${{ github.event.repository.custom_properties.modrinth_id }}
57+
name: ${{ github.event.release.name == github.event.release.tag_name && format('BankAccounts {0}', github.event.release.name) || github.event.release.name }}
58+
version: ${{ github.event.release.tag_name }}
5959
changelog: ${{ github.event.release.body }}
6060
loaders: paper
61+
game-versions: |-
62+
1.20.x
63+
1.21.x
64+
files: target/CloudnodeMSG-${{ steps.version.outputs.VERSION }}.jar
6165

6266
- name: Generate Javadoc
6367
run: mvn -B javadoc:javadoc --file pom.xml

0 commit comments

Comments
 (0)