From 9820e3a521d6f791c5de618c21b04aefa653ecb0 Mon Sep 17 00:00:00 2001 From: TylerS1066 Date: Sun, 11 Aug 2024 10:14:48 -0500 Subject: [PATCH] Switch maven publish to tag push --- .github/workflows/gradle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 4707183..8a35b9e 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -33,7 +33,7 @@ jobs: run: ./gradlew clean build --parallel - name: Publish to GitHub Packages - if: ${{ github.event_name == 'release' }} + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') run: ./gradlew publish --parallel env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}