11name : Sync to Maven Central 
22description : Syncs a release to Maven Central and waits for it to be available for use 
33inputs :
4+   central-token-password :
5+     description : ' Password for authentication with central.sonatype.com' 
6+     required : true 
7+   central-token-username :
8+     description : ' Username for authentication with central.sonatype.com' 
9+     required : true 
410  jfrog-cli-config-token :
511    description : ' Config token for the JFrog CLI' 
612    required : true 
713  nullability-plugin-version :
814    description : ' The version of Compatibility Test Plugin that is being synced to Central' 
915    required : true 
10-   ossrh-s01-token-username :
11-     description : ' Username for authentication with s01.oss.sonatype.org' 
12-     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' 
18-     required : true 
1916runs :
2017  using : composite 
2118  steps :
@@ -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('nullability-plugin-{0}', inputs.nullability-plugin-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 : ${{ inputs.central-token-password }} 
30+         token-name : ${{ inputs.central-token-username }} 
4031    - name : Await 
4132      shell : bash 
4233      run : | 
0 commit comments