Split publication for maven and Modrinth / CurseForge

This commit is contained in:
miozune 2023-11-02 14:35:31 +09:00 committed by Martin Robertz
parent c26875bdec
commit 6c557505f7

View File

@ -78,12 +78,18 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ !contains(github.event.head_commit.message, '[no github]') }}
- name: Publish to Maven, Modrinth and CurseForge
- name: Publish to Maven
run: ./gradlew --build-cache --info --stacktrace build publish
continue-on-error: true
env:
MAVEN_USER: ${{ secrets.MAVEN_USER }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
if: ${{ env.MAVEN_USER != '' }}
- name: Publish to Modrinth and CurseForge
run: ./gradlew --build-cache --info --stacktrace build publish
continue-on-error: true
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
if: ${{ env.MAVEN_USER != '' }}