From 6c557505f7bcebc0be648630cd1c0ee53dacdb50 Mon Sep 17 00:00:00 2001 From: miozune Date: Thu, 2 Nov 2023 14:35:31 +0900 Subject: [PATCH] Split publication for maven and Modrinth / CurseForge --- .github/workflows/release-tags.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-tags.yml b/.github/workflows/release-tags.yml index 94735fa..5be71da 100644 --- a/.github/workflows/release-tags.yml +++ b/.github/workflows/release-tags.yml @@ -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 != '' }}