Build a Mojang mapped jar in addition to the reobf one, publish both to Modrinth with correct metadata (#2981)

This commit is contained in:
Jason Penilla
2024-11-14 09:20:53 -07:00
committed by GitHub
parent e3fc35ce6d
commit dcd6b93ebb
11 changed files with 154 additions and 32 deletions

View File

@ -24,5 +24,5 @@ jobs:
""
"The download is available at:"
"- Spigot: <https://www.spigotmc.org/resources/13932/>"
"- Modrinth: <https://modrinth.com/plugin/fastasyncworldedit/version/${{ github.event.release.tag_name }}>"
"- Modrinth: <https://modrinth.com/plugin/fastasyncworldedit>"
"- CurseForge: <https://www.curseforge.com/minecraft/bukkit-plugins/fawe>"

View File

@ -24,4 +24,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: FastAsyncWorldEdit-SNAPSHOT
path: worldedit-bukkit/build/libs/FastAsyncWorldEdit-Bukkit-*.jar
path: worldedit-bukkit/build/libs/FastAsyncWorldEdit-*.jar

View File

@ -70,9 +70,9 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: FastAsyncWorldEdit-Bukkit-SNAPSHOT
path: worldedit-bukkit/build/libs/FastAsyncWorldEdit-Bukkit-*.jar
path: worldedit-bukkit/build/libs/FastAsyncWorldEdit-*.jar
- name: Publish to Modrinth
if: ${{ runner.os == 'Linux' && env.STATUS == 'release' && github.event_name == 'push' && github.ref == 'refs/heads/main'}}
run: ./gradlew modrinth
run: ./gradlew publishMods
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}

View File

@ -21,6 +21,6 @@ jobs:
- name: Upload Release Assets
uses: AButler/upload-release-assets@v3.0
with:
files: 'worldedit-bukkit/build/libs/FastAsyncWorldEdit-Bukkit-*.jar'
files: 'worldedit-bukkit/build/libs/FastAsyncWorldEdit-*.jar'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.event.release.tag_name }}