Skip to content

Commit 61498b3

Browse files
committed
Configure Maven Central sync to use the central portal
Closes gh-1837
1 parent f00fb52 commit 61498b3

File tree

3 files changed

+11
-16
lines changed

3 files changed

+11
-16
lines changed

.github/actions/sync-to-maven-central/action.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
name: Sync to Maven Central
22
description: 'Syncs a release to Maven Central and waits for it to be available for use'
33
inputs:
4-
jfrog-cli-config-token:
5-
description: 'Config token for the JFrog CLI'
6-
required: true
7-
ossrh-s01-staging-profile:
8-
description: 'Staging profile to use when syncing to Central'
4+
central-token-password:
5+
description: 'Password for authentication with central.sonatype.com'
96
required: true
10-
ossrh-s01-token-password:
11-
description: 'Password for authentication with s01.oss.sonatype.org'
7+
central-token-username:
8+
description: 'Username for authentication with central.sonatype.com'
129
required: true
13-
ossrh-s01-token-username:
14-
description: 'Username for authentication with s01.oss.sonatype.org'
10+
jfrog-cli-config-token:
11+
description: 'Config token for the JFrog CLI'
1512
required: true
1613
spring-webflow-version:
1714
description: 'Version of Spring Webflow that is being synced to Central'

.github/workflows/release-milestone.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ jobs:
5151
- name: Sync to Maven Central
5252
uses: ./.github/actions/sync-to-maven-central
5353
with:
54+
central-token-password: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
55+
central-token-username: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
5456
jfrog-cli-config-token: ${{ secrets.JF_ARTIFACTORY_SPRING }}
55-
ossrh-s01-staging-profile: ${{ secrets.OSSRH_S01_STAGING_PROFILE }}
56-
ossrh-s01-token-password: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }}
57-
ossrh-s01-token-username: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }}
5857
spring-webflow-version: ${{ needs.build-and-stage-release.outputs.version }}
5958
promote-release:
6059
name: Promote Release
@@ -64,7 +63,7 @@ jobs:
6463
runs-on: ubuntu-latest
6564
steps:
6665
- name: Set up JFrog CLI
67-
uses: jfrog/setup-jfrog-cli@5b06f730cc5a6f55d78b30753f8583454b08c0aa # v4.8.1
66+
uses: jfrog/setup-jfrog-cli@e5d3afdd1d75e4aa14a4f217cca93a2a9b5b846d # v4.8.0
6867
env:
6968
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
7069
- name: Promote build

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@ jobs:
5050
- name: Sync to Maven Central
5151
uses: ./.github/actions/sync-to-maven-central
5252
with:
53+
central-token-password: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
54+
central-token-username: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
5355
jfrog-cli-config-token: ${{ secrets.JF_ARTIFACTORY_SPRING }}
54-
ossrh-s01-staging-profile: ${{ secrets.OSSRH_S01_STAGING_PROFILE }}
55-
ossrh-s01-token-password: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }}
56-
ossrh-s01-token-username: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }}
5756
spring-webflow-version: ${{ needs.build-and-stage-release.outputs.version }}
5857
promote-release:
5958
name: Promote Release

0 commit comments

Comments
 (0)