|
23 | 23 | slack_channel: lang-python
|
24 | 24 | env:
|
25 | 25 | ARTIFACTORY_API_KEY: ${{ secrets.ARTIFACTORY_API_KEY }}
|
26 |
| - BINTRAY_USER: ${{ secrets.BINTRAY_USER }} |
27 |
| - BINTRAY_TOKEN: ${{ secrets.BINTRAY_TOKEN }} |
28 | 26 | BURGRX_USER: ${{ secrets.BURGRX_USER }}
|
29 | 27 | BURGRX_PASSWORD: ${{ secrets.BURGRX_PASSWORD }}
|
30 |
| - CENTRAL_USER: ${{ secrets.CENTRAL_USER }} |
31 |
| - CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }} |
32 | 28 | CIRRUS_TOKEN: ${{ secrets.CIRRUS_TOKEN }}
|
33 |
| - GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} |
34 | 29 | PATH_PREFIX: ${{ secrets.BINARIES_PATH_PREFIX }}
|
35 | 30 | GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
|
36 | 31 | RELEASE_SSH_USER: ${{ secrets.RELEASE_SSH_USER }}
|
|
44 | 39 | run: |
|
45 | 40 | echo "${{ steps.lt_release.outputs.releasability }}"
|
46 | 41 | echo "${{ steps.lt_release.outputs.release }}"
|
47 |
| - |
| 42 | + maven-central-sync: |
| 43 | + runs-on: ubuntu-latest |
| 44 | + needs: |
| 45 | + - sonar_release |
| 46 | + steps: |
| 47 | + - name: Setup JFrog CLI |
| 48 | + uses: jfrog/setup-jfrog-cli@v1 |
| 49 | + - name: JFrog config |
| 50 | + run: jfrog rt config repox --url https://repox.jfrog.io/artifactory/ --apikey $ARTIFACTORY_API_KEY --basic-auth-only |
| 51 | + env: |
| 52 | + ARTIFACTORY_API_KEY: ${{ secrets.ARTIFACTORY_API_KEY }} |
| 53 | + - name: Get the version |
| 54 | + id: get_version |
| 55 | + run: | |
| 56 | + IFS=. read major minor patch build <<< "${{ github.event.release.tag_name }}" |
| 57 | + echo ::set-output name=build::"${build}" |
| 58 | + - name: Create local repository directory |
| 59 | + id: local_repo |
| 60 | + run: echo ::set-output name=dir::"$(mktemp -d repo.XXXXXXXX)" |
| 61 | + - name: Download Artifacts |
| 62 | + uses: SonarSource/gh-action_release/download-build@v3 |
| 63 | + with: |
| 64 | + build-number: ${{ steps.get_version.outputs.build }} |
| 65 | + local-repo-dir: ${{ steps.local_repo.outputs.dir }} |
| 66 | + - name: Maven Central Sync |
| 67 | + id: maven-central-sync |
| 68 | + continue-on-error: true |
| 69 | + uses: SonarSource/gh-action_release/maven-central-sync@v3 |
| 70 | + with: |
| 71 | + local-repo-dir: ${{ steps.local_repo.outputs.dir }} |
| 72 | + env: |
| 73 | + OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} |
| 74 | + OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} |
| 75 | + - name: Notify on failure |
| 76 | + if: ${{ failure() || steps.maven-central-sync.outcome == 'failure' }} |
| 77 | + uses: 8398a7/action-slack@v3 |
| 78 | + with: |
| 79 | + status: failure |
| 80 | + fields: repo,author,eventName |
| 81 | + env: |
| 82 | + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_BUILD_WEBHOOK }} |
0 commit comments