forked from SuperRicky14/TpaPlusPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* For auto publish to Modrinth and CurseForge, MODRINTH_TOKEN and CF_API_TOKEN are required
- Loading branch information
1 parent
fca0ee4
commit c82c425
Showing
3 changed files
with
67 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [ published ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: 'liberica' | ||
cache: 'gradle' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
gradle-version: 8.8 | ||
|
||
- name: Build artifacts | ||
run: gradle build | ||
|
||
- name: Upload assets to GitHub, Modrinth and CurseForge | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
modrinth-id: QuPbmyCQ | ||
modrinth-featured: false | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
|
||
curseforge-id: 945501 | ||
curseforge-token: ${{ secrets.CF_API_TOKEN }} | ||
|
||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
loaders: | | ||
fabric | ||
files: | | ||
build/libs/!(*-@(dev-all|sources)).jar | ||
build/libs/*-@(dev-all|sources).jar |