Skip to content

Commit 3462e8e

Browse files
committed
Update actions
1 parent 1411bd8 commit 3462e8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ jobs:
3030
fi
3131
- name: Publish Snapshot
3232
if: "${{ env.STATUS != 'release' && github.event_name == 'push' && github.ref == 'refs/heads/master' }}"
33-
run: ./gradlew publish
33+
run: ./gradlew publishAllPublicationsToSonatypeSnapshots
3434
env:
3535
ORG_GRADLE_PROJECT_sonatypeUsername: "${{ secrets.SONATYPE_USERNAME }}"
3636
ORG_GRADLE_PROJECT_sonatypePassword: "${{ secrets.SONATYPE_PASSWORD }}"
3737
- name: Publish Release
3838
if: "${{ env.STATUS == 'release' && github.event_name == 'release' }}"
39-
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
39+
run: ./gradlew publishReleaseCentralPortalBundle
4040
env:
4141
ORG_GRADLE_PROJECT_sonatypeUsername: "${{ secrets.SONATYPE_USERNAME }}"
4242
ORG_GRADLE_PROJECT_sonatypePassword: "${{ secrets.SONATYPE_PASSWORD }}"

0 commit comments

Comments
 (0)