Skip to content

Commit

Permalink
fix(ci): close and release only if not snapshot (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp authored May 11, 2022
1 parent 667d7b9 commit be2475a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ 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: ! cat ./gradle.properties | grep 'VERSION_NAME=.*-SNAPSHOT'
if: ${{ steps.check-snapshot.exitcode == 1 }}
run: ./gradlew closeAndReleaseRepository

0 comments on commit be2475a

Please sign in to comment.