Skip to content

Commit bcfc892

Browse files
committed
Cleanup
1 parent 46c4ed5 commit bcfc892

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff 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:
@@ -45,8 +45,7 @@ jobs:
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 }}

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)