Skip to content

Commit d1a5438

Browse files
committed
Adjust publish workflow
1 parent 78ddc90 commit d1a5438

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish package to the Maven Central Repository and GitHub Packages
22
on:
33
release:
44
types:
5-
- created
5+
- published
66
jobs:
77
publish:
88
runs-on: ubuntu-latest
@@ -16,10 +16,8 @@ jobs:
1616
with:
1717
java-version: '11'
1818
distribution: 'adopt'
19-
- name: Validate Gradle wrapper
20-
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
2119
- name: Publish package
22-
run: gradle publish
20+
run: ./gradlew publish
2321
env:
2422
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
2523
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

0 commit comments

Comments
 (0)