File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,12 @@ jobs:
2424 - name : Checkout
2525 uses : actions/checkout@v4
2626
27- # - name: Fail if not running on main branch
28- # if: ${{ github.ref != 'refs/heads/main' }}
29- # uses: actions/github-script@v7
30- # with:
31- # script: |
32- # core.setFailed('Not running on main branch, github.ref is ${{ github.ref }}. Please start this workflow only on main')
27+ - name : Fail if not running on main branch
28+ if : ${{ github.ref != 'refs/heads/main' }}
29+ uses : actions/github-script@v7
30+ with :
31+ script : |
32+ core.setFailed('Not running on main branch, github.ref is ${{ github.ref }}. Please start this workflow only on main')
3333
3434 - uses : actions/setup-java@v4
3535 with :
4545 - name : Publish to Maven Central
4646 if : ${{ !inputs.skip-deploy-maven-central }}
4747 run : |
48- #./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --info --warning-mode all
49- ./gradlew publishToSonatype closeSonatypeStagingRepository --info --warning-mode all
48+ ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --info --warning-mode all
5049 env :
5150 ORG_GRADLE_PROJECT_sonatypeUsername : ${{ secrets.MAVEN_CENTRAL_PORTAL_TOKEN }}
5251 ORG_GRADLE_PROJECT_sonatypePassword : ${{ secrets.MAVEN_CENTRAL_PORTAL_USERNAME }}
Original file line number Diff line number Diff line change @@ -122,7 +122,6 @@ nexusPublishing {
122122 packageGroup = project. group
123123 repositories {
124124 sonatype {
125- // stagingProfileId = "546ea6ce74787e"
126125 nexusUrl. set(uri(" https://ossrh-staging-api.central.sonatype.com/service/local/" ))
127126 snapshotRepositoryUrl. set(uri(" https://central.sonatype.com/repository/maven-snapshots/" ))
128127 }
You can’t perform that action at this time.
0 commit comments