Skip to content

Commit 249c01f

Browse files
committed
ci: update release workflow to use nmcp Central Portal publishing
Replace the 10 individual :subproject:publish tasks (targeting the retired s01.oss.sonatype.org) with a single publishAllPublicationsToMavenCentral task from the nmcp plugin. Credential env vars renamed: ORG_GRADLE_PROJECT_ossrhUsername → CENTRAL_USERNAME ORG_GRADLE_PROJECT_ossrhPassword → CENTRAL_PASSWORD (secrets are unchanged; only the mapping into the container changes)
1 parent 19abb57 commit 249c01f

1 file changed

Lines changed: 6 additions & 17 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: release
22

33
# Triggered manually from the Actions tab; the operator confirms the version
4-
# in the input field and the workflow handles tagging and Sonatype staging.
4+
# in the input field and the workflow handles tagging and Central Portal upload.
55
on:
66
workflow_dispatch:
77
inputs:
@@ -10,7 +10,7 @@ on:
1010
required: true
1111
type: string
1212
dry_run:
13-
description: "Skip the Sonatype upload (build + sign locally only)"
13+
description: "Skip the Maven Central upload (build + sign locally only)"
1414
required: false
1515
type: boolean
1616
default: false
@@ -47,25 +47,14 @@ jobs:
4747
- name: Build + test
4848
run: ./gradlew build --no-daemon --stacktrace
4949

50-
- name: Publish to Sonatype Central
50+
- name: Publish to Maven Central
5151
if: ${{ !inputs.dry_run }}
5252
env:
53-
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.OSSRH_USERNAME }}
54-
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD }}
53+
CENTRAL_USERNAME: ${{ secrets.OSSRH_USERNAME }}
54+
CENTRAL_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
5555
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_SIGNING_KEY }}
5656
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_SIGNING_PASSWORD }}
57-
run: |
58-
./gradlew --no-daemon --stacktrace \
59-
:arcp-core:publish \
60-
:arcp-client:publish \
61-
:arcp-runtime:publish \
62-
:arcp:publish \
63-
:arcp-otel:publish \
64-
:arcp-runtime-jetty:publish \
65-
:arcp-middleware-jakarta:publish \
66-
:arcp-middleware-spring-boot:publish \
67-
:arcp-middleware-vertx:publish \
68-
:arcp-tck:publish
57+
run: ./gradlew --no-daemon --stacktrace publishAllPublicationsToMavenCentral
6958

7059
- name: Local publish (dry run)
7160
if: ${{ inputs.dry_run }}

0 commit comments

Comments
 (0)