From 1de7f7980d2b414fcc60bf7ce59ddc296b9a8594 Mon Sep 17 00:00:00 2001 From: Apehum <36326454+Apehum@users.noreply.github.com> Date: Wed, 30 Oct 2024 19:37:12 +0800 Subject: [PATCH] ci: publish to maven repo --- .github/workflows/alpha.yml | 3 +++ .github/workflows/prerelease-publish.yml | 3 +++ .github/workflows/release.yml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index c507aca..7d45663 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -29,6 +29,9 @@ jobs: - name: Build with Gradle run: ./gradlew build + - name: Publish to maven repository + run: ./gradlew publish + - name: Publish to Modrinth/CurseForge uses: Apehum/mc-publish@v1.1 with: diff --git a/.github/workflows/prerelease-publish.yml b/.github/workflows/prerelease-publish.yml index 9475d13..7310f14 100644 --- a/.github/workflows/prerelease-publish.yml +++ b/.github/workflows/prerelease-publish.yml @@ -30,6 +30,9 @@ jobs: - name: Build with Gradle run: ./gradlew build + - name: Publish to maven repository + run: ./gradlew publish -Psnapshot=true + - name: Publish to GitHub uses: Apehum/mc-publish@v1.1 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 003a3a8..53e55b9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,6 +29,9 @@ jobs: - name: Build with Gradle run: ./gradlew build + - name: Publish to maven repository + run: ./gradlew publish + - name: Publish to Modrinth/CurseForge uses: Apehum/mc-publish@v1.1 with: