We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 667d7b9 commit be2475aCopy full SHA for be2475a
clients/algoliasearch-client-java-2/.github/workflows/release.yml
@@ -32,6 +32,10 @@ jobs:
32
- name: Upload Artifacts
33
run: ./gradlew clean publish --no-parallel --stacktrace
34
35
+ - name: Check snapshot
36
+ id: check-snapshot
37
+ run: cat ./gradle.properties | grep 'VERSION_NAME=.*-SNAPSHOT'
38
+
39
- name: Release Artifacts
- if: ! cat ./gradle.properties | grep 'VERSION_NAME=.*-SNAPSHOT'
40
+ if: ${{ steps.check-snapshot.exitcode == 1 }}
41
run: ./gradlew closeAndReleaseRepository
0 commit comments