3939 runs-on : ${{ matrix.os }}
4040 strategy :
4141 matrix :
42- # os: [ ubuntu-latest, windows-latest, macos-latest ]
43- os : [ ubuntu-latest, macos-latest ]
42+ # os: [ ubuntu-latest, windows-latest, macos-latest ]
43+ os : [ ubuntu-latest, macos-latest ]
4444 steps :
4545 - uses : actions/checkout@main
4646 with :
@@ -75,10 +75,20 @@ jobs:
7575 uses : gradle/actions/setup-gradle@main
7676
7777 - name : Publish with Gradle
78- run : ./gradlew publish
78+ # Gradle only picks up a secret as a project property when it is exported with the
79+ # ORG_GRADLE_PROJECT_ prefix. Plain `ossrhUsername: ...` was an ordinary environment
80+ # variable that nothing ever read.
81+ #
82+ # No RELEASE variable here on purpose: getVersion() then produces a -SNAPSHOT version and
83+ # the plugin routes it to the Central Portal snapshot repository. Set RELEASE=true only
84+ # when you actually intend to cut a release.
85+ run : ./gradlew publishToMavenCentral
7986 env :
80- ossrhUsername : ${{ secrets.OSSRHUSERNAME }}
81- ossrhPassword : ${{ secrets.OSSRHPASSWORD }}
87+ ORG_GRADLE_PROJECT_mavenCentralUsername : ${{ secrets.mavenCentralUsername }}
88+ ORG_GRADLE_PROJECT_mavenCentralPassword : ${{ secrets.mavenCentralPassword }}
89+ ORG_GRADLE_PROJECT_signingInMemoryKey : ${{ secrets.signingInMemoryKey }}
90+ ORG_GRADLE_PROJECT_signingInMemoryKeyId : ${{ secrets.signingInMemoryKeyId }}
91+ ORG_GRADLE_PROJECT_signingInMemoryKeyPassword : ${{ secrets.signingInMemoryKeyPassword }}
8292
8393 - uses : actions/setup-python@main
8494
@@ -101,4 +111,4 @@ jobs:
101111
102112 - name : Deploy to GitHub Pages
103113 id : deployment
104- uses : actions/deploy-pages@main
114+ uses : actions/deploy-pages@main
0 commit comments