You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.5 KiB
34 lines
1.5 KiB
name: Sync to Maven Central |
|
description: 'Syncs a release to Maven Central and waits for it to be available for use' |
|
inputs: |
|
central-token-password: |
|
description: 'Password for authentication with central.sonatype.com' |
|
required: true |
|
central-token-username: |
|
description: 'Username for authentication with central.sonatype.com' |
|
required: true |
|
jfrog-cli-config-token: |
|
description: 'Config token for the JFrog CLI' |
|
required: true |
|
spring-framework-version: |
|
description: 'Version of Spring Framework that is being synced to Central' |
|
required: true |
|
runs: |
|
using: composite |
|
steps: |
|
- name: Set Up JFrog CLI |
|
uses: jfrog/setup-jfrog-cli@5b06f730cc5a6f55d78b30753f8583454b08c0aa # v4.8.1 |
|
env: |
|
JF_ENV_SPRING: ${{ inputs.jfrog-cli-config-token }} |
|
- name: Download Release Artifacts |
|
shell: bash |
|
run: jf rt download --spec ${{ format('{0}/artifacts.spec', github.action_path) }} --spec-vars 'buildName=${{ format('spring-framework-{0}', inputs.spring-framework-version) }};buildNumber=${{ github.run_number }}' |
|
- name: Sync |
|
uses: spring-io/central-publish-action@0c03960e9b16fdfe70e2443e1d5393cbc3a35622 # v0.3.0 |
|
with: |
|
token: ${{ inputs.central-token-password }} |
|
token-name: ${{ inputs.central-token-username }} |
|
- name: Await |
|
uses: ./.github/actions/await-http-resource |
|
with: |
|
url: ${{ format('https://repo.maven.apache.org/maven2/org/springframework/spring-context/{0}/spring-context-{0}.jar', inputs.spring-framework-version) }}
|
|
|