Skip to content

Commit a0ecb09

Browse files
Update publish.yml
1 parent 11fef70 commit a0ecb09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- name: Build with Gradle
2222
run: ./gradlew build
2323
- name: Publish package
24+
if: startsWith(github.ref, 'refs/tags/')
2425
run: ./gradlew publishAndReleaseToMavenCentral --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD"
2526
env:
2627
SONATYPE_USERNAME: ${{ secrets.OSSRH_USERNAME }}

0 commit comments

Comments
 (0)