From 6a537a8a152131b87c206e551105dd98e8f8d20a Mon Sep 17 00:00:00 2001 From: Alexey Novakov Date: Tue, 14 Oct 2025 20:34:15 +0300 Subject: [PATCH] release only on newly pushed tag --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eee33892..df083a82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ # This workflow will build a Java project with Maven # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven -name: CI +name: All Tests on: push: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e0d231bb..393bd3ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,7 @@ -name: release +name: Release concurrency: release on: push: - branches: [master, main] tags: ["*"] jobs: release: @@ -22,7 +21,7 @@ jobs: - run: echo $PGP_SECRET | base64 --decode | gpg --batch --import env: PGP_SECRET: ${{ secrets.PGP_SECRET }} - - run: sbt test ciReleaseTagNextVersion ciReleaseSonatype + - run: sbt test ciReleaseSkipIfAlreadyReleased ciReleaseTagNextVersion ciReleaseSonatype env: SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} \ No newline at end of file