Skip to content

Commit 10ed784

Browse files
committed
Prepare for release on Sonatype Central Portal
1 parent d234bee commit 10ed784

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

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

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ inputs:
77
initializr-version:
88
description: 'The version of Initializr that is being synced to Central'
99
required: true
10-
ossrh-s01-token-username:
11-
description: 'Username for authentication with s01.oss.sonatype.org'
10+
sonatype-token-name:
11+
description: 'Token username for the Sonatype Central Portal'
1212
required: true
13-
ossrh-s01-token-password:
14-
description: 'Password for authentication with s01.oss.sonatype.org'
15-
required: true
16-
ossrh-s01-staging-profile:
17-
description: 'Staging profile to use when syncing to Central'
13+
sonatype-token:
14+
description: 'Token for the Sonatype Central Portal'
1815
required: true
1916
runs:
2017
using: composite
@@ -27,16 +24,10 @@ runs:
2724
shell: bash
2825
run: jf rt download --spec ${{ format('{0}/artifacts.spec', github.action_path) }} --spec-vars 'buildName=${{ format('initializr-{0}', inputs.initializr-version) }};buildNumber=${{ github.run_number }}'
2926
- name: Sync
30-
uses: spring-io/nexus-sync-action@42477a2230a2f694f9eaa4643fa9e76b99b7ab84 # v0.0.1
27+
uses: spring-io/central-publish-action@0cdd90d12e6876341e82860d951e1bcddc1e51b6 # v0.2.0
3128
with:
32-
username: ${{ inputs.ossrh-s01-token-username }}
33-
password: ${{ inputs.ossrh-s01-token-password }}
34-
staging-profile-name: ${{ inputs.ossrh-s01-staging-profile }}
35-
create: true
36-
upload: true
37-
close: true
38-
release: true
39-
generate-checksums: true
29+
token-name: ${{ inputs.sonatype-token-name }}
30+
token: ${{ inputs.sonatype-token }}
4031
- name: Await
4132
shell: bash
4233
run: |

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ jobs:
5757
uses: ./.github/actions/sync-to-maven-central
5858
with:
5959
jfrog-cli-config-token: ${{ secrets.JF_ARTIFACTORY_SPRING }}
60-
ossrh-s01-staging-profile: ${{ secrets.OSSRH_S01_STAGING_PROFILE }}
61-
ossrh-s01-token-password: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }}
62-
ossrh-s01-token-username: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }}
60+
sonatype-token: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
61+
sonatype-token-name: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
6362
initializr-version: ${{ needs.build-and-stage-release.outputs.version }}
6463
promote-release:
6564
name: Promote Release

0 commit comments

Comments
 (0)