Skip to content

Commit 4ee501b

Browse files
committed
chore: #105 Migrate release process from OSSRH to Maven Central Publishing portal
Signed-off-by: Laurent Broudoux <[email protected]>
1 parent 7105dd4 commit 4ee501b

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

.github/workflows/build-verify.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
environment: Build
2020
steps:
2121
- name: Checkout Code
22-
uses: actions/checkout@v5
22+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2323

2424
- name: Set up JDK 17 for x64
25-
uses: actions/setup-java@v5
25+
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
2626
with:
2727
java-version: '17'
2828
distribution: 'temurin'

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ jobs:
2222
id-token: write
2323
steps:
2424
- name: Checkout Code
25-
uses: actions/checkout@v5
25+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2626
with:
2727
ssh-key: ${{ secrets.RELEASE_DEPLOY_KEY }}
2828
fetch-depth: 0
2929
ref: ${{ github.event.inputs.branch }}
3030

3131
- name: Set up JDK 17 for x64
32-
uses: actions/setup-java@v5
32+
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
3333
with:
3434
java-version: '17'
3535
distribution: 'temurin'
@@ -52,8 +52,8 @@ jobs:
5252

5353
- name: Publish package with JReleaser
5454
env:
55-
JRELEASER_NEXUS2_USERNAME: ${{ secrets.JRELEASER_NEXUS2_USERNAME }}
56-
JRELEASER_NEXUS2_PASSWORD: ${{ secrets.JRELEASER_NEXUS2_PASSWORD }}
55+
JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
56+
JRELEASER_MAVENCENTRAL_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
5757
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
5858
JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }}
5959
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}

jreleaser.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,14 @@ files:
3232

3333
deploy:
3434
maven:
35-
nexus2:
35+
mavenCentral:
3636
sonatype:
3737
active: ALWAYS
3838
snapshotSupported: false
39-
url: https://oss.sonatype.org/service/local
40-
snapshotUrl: https://oss.sonatype.org/content/repositories/snapshots
41-
stagingProfileId: c3fae58a8dda9
42-
closeRepository: false
43-
releaseRepository: false
39+
url: https://central.sonatype.com/api/v1/publisher
40+
username: wPlqdV4c
41+
namespace: io.github.microcks
42+
applyMavenCentralRules: true
4443
stagingRepositories:
4544
- target/staging-deploy
4645
pomchecker:

0 commit comments

Comments
 (0)