From 09e0aba2729f060b6a50d477366c3b8d7d8822ef Mon Sep 17 00:00:00 2001 From: Robert Date: Sat, 27 May 2023 13:38:40 +0800 Subject: [PATCH] Publish repository to snapshot if the tag ended with alpha or beta. --- .github/workflows/gradle-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml index aa877ba..f6b4b5f 100644 --- a/.github/workflows/gradle-publish.yml +++ b/.github/workflows/gradle-publish.yml @@ -54,7 +54,7 @@ jobs: - name: Publish to Maven Central run: | - if [[ ${{ env.TAG_NAME }} == *"SNAPSHOT" ]]; then + if [[ ${{ env.TAG_NAME }} == *"beta" || ${{ env.TAG_NAME }} == *"alpha" ]]; then ./gradlew publishToMavenSnapShotRepository else ./gradlew publish