Maven Central Release #22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Maven Central Release | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| buildName: | |
| description: "Artifactory build name" | |
| required: true | |
| buildNumber: | |
| description: "Artifactory build number" | |
| required: true | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/[email protected] | |
| - name: Set Up JFrog CLI | |
| uses: jfrog/setup-jfrog-cli@9fe0f98bd45b19e6e931d457f4e98f8f84461fb5 # v4.4.1 | |
| env: | |
| JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }} | |
| - name: Download Release Artifacts | |
| shell: bash | |
| run: jf rt download --spec .github/release-files-spec.json --spec-vars 'buildname=${{ github.event.inputs.buildName }};buildnumber=${{ github.event.inputs.buildNumber }}' | |
| - name: Sync to Maven Central | |
| uses: spring-io/central-publish-action@0cdd90d12e6876341e82860d951e1bcddc1e51b6 # v0.2.0 | |
| with: | |
| token-name: ${{ secrets.CENTRAL_TOKEN_USERNAME }} | |
| token: ${{ secrets.CENTRAL_TOKEN_PASSWORD }} | |
| timeout: 60m |