Skip to content

Commit dfef03e

Browse files
committed
Publish releases using Central Portal
Closes gh-968
1 parent 4e36376 commit dfef03e

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

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

Lines changed: 7 additions & 10 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-restdocs-version:
1714
description: 'Version of Spring REST Docs that is being synced to Central'
@@ -27,7 +24,7 @@ runs:
2724
shell: bash
2825
run: jf rt download --spec ${{ format('{0}/artifacts.spec', github.action_path) }} --spec-vars 'buildName=${{ format('spring-restdocs-{0}', inputs.spring-restdocs-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:
3229
close: true
3330
create: true

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ jobs:
4646
- name: Sync to Maven Central
4747
uses: ./.github/actions/sync-to-maven-central
4848
with:
49+
central-token-password: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
50+
central-token-username: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
4951
jfrog-cli-config-token: ${{ secrets.JF_ARTIFACTORY_SPRING }}
50-
ossrh-s01-staging-profile: ${{ secrets.OSSRH_S01_STAGING_PROFILE }}
51-
ossrh-s01-token-password: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }}
52-
ossrh-s01-token-username: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }}
5352
spring-restdocs-version: ${{ needs.build-and-stage-release.outputs.version }}
5453
promote-release:
5554
name: Promote Release

0 commit comments

Comments
 (0)