diff --git a/clients/algoliasearch-client-java-2/.github/workflows/release.yml b/clients/algoliasearch-client-java-2/.github/workflows/release.yml index dd992a6476..c211d3c36c 100644 --- a/clients/algoliasearch-client-java-2/.github/workflows/release.yml +++ b/clients/algoliasearch-client-java-2/.github/workflows/release.yml @@ -32,10 +32,6 @@ jobs: - name: Upload Artifacts run: ./gradlew clean publish --no-parallel --stacktrace - - name: Check snapshot - id: check-snapshot - run: cat ./gradle.properties | grep 'VERSION_NAME=.*-SNAPSHOT' - - name: Release Artifacts - if: ${{ steps.check-snapshot.exitcode == 1 }} + if: ! cat ./gradle.properties | grep 'VERSION_NAME=.*-SNAPSHOT' run: ./gradlew closeAndReleaseRepository