From 87886398d3f071b51a9384d3f1c295472fdf4e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Link?= Date: Fri, 9 Aug 2024 07:58:10 +0200 Subject: [PATCH] Only run on release tags. --- .github/workflows/publish.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index edb69c9..55ed4eb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,10 +9,8 @@ name: Publish on: push: - branches: - - "feature/**" -# tags: -# - 'v[0-9]+.[0-9]+.[0-9]+' + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' jobs: @@ -45,4 +43,4 @@ jobs: - name: Build with Gradle Wrapper run: | export GPG_SIGNING_KEY="${{ secrets.OSSRH_GPG_SECRET_KEY }}" - ./gradlew build \ No newline at end of file + ./gradlew build publishAllPublicationsToSonatypeRepository \ No newline at end of file