diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9cc22a8..1bb4c96 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,14 +10,11 @@ jobs: env: GRADLE_OPTS: "-Xmx6g -Xms4g" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: java-version: 1.8 - - name: Semantic Version - id: version - uses: ncipollo/semantic-version-action@v1 - name: Decode PGP id: write_file uses: timheuer/base64-to-file@v1 @@ -32,7 +29,7 @@ jobs: SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} SIGNING_SECRET_KEY_PATH: ${{ steps.write_file.outputs.filePath }} with: - arguments: gitPublishPush publishToSonatype closeAndReleaseSonatypeStagingRepository -Pversion=${{ steps.version.outputs.tag }} -Prelease=true -Dorg.ajoberstar.grgit.auth.username=${{ secrets.AGORAPULSE_BOT_PERSONAL_TOKEN }} --stacktrace + arguments: gitPublishPush publishToSonatype closeAndReleaseSonatypeStagingRepository -Pversion=${{ github.ref_name }} -Prelease=true -Dorg.ajoberstar.grgit.auth.username=${{ secrets.AGORAPULSE_BOT_PERSONAL_TOKEN }} --stacktrace ping: name: Notify Upstream Repositories runs-on: ubuntu-latest @@ -43,14 +40,11 @@ jobs: - agorapulse/agorapulse-bom - agorapulse/agorapulse-oss steps: - - uses: actions/checkout@v1 - - name: Semantic Version - id: version - uses: ncipollo/semantic-version-action@v1 + - uses: actions/checkout@v4 - name: Dispatch to ${{ matrix.repository }} uses: peter-evans/repository-dispatch@v1 with: token: ${{ secrets.AGORAPULSE_BOT_PERSONAL_TOKEN }} repository: ${{ matrix.repository }} event-type: ap-new-version-released-event - client-payload: '{ "group": "com.agorapulse.testing", "module": "testing-libraries", "version": "${{ steps.version.outputs.tag }}", "property" : "testing.libraries.version", "github" : ${{ toJson(github) }} }' + client-payload: '{ "group": "com.agorapulse.testing", "module": "testing-libraries", "version": "${{ github.ref_name }}", "property" : "testing.libraries.version", "github" : ${{ toJson(github) }} }'