Release PerfTest #8
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: Release PerfTest | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '11' | |
| cache: 'maven' | |
| server-id: central | |
| server-username: MAVEN_USERNAME | |
| server-password: MAVEN_PASSWORD | |
| gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} | |
| gpg-passphrase: MAVEN_GPG_PASSPHRASE | |
| - name: Release PerfTest | |
| run: | | |
| git config user.name "rabbitmq-ci" | |
| git config user.email "[email protected]" | |
| ci/release-perf-test.sh | |
| env: | |
| MAVEN_USERNAME: ${{ secrets.CENTRAL_USERNAME }} | |
| MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN }} | |
| MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} | |
| - name: Package Perf Test | |
| run: ci/package-perf-test.sh | |
| env: | |
| MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} | |
| - name: Push to GitHub Release | |
| uses: softprops/[email protected] | |
| with: | |
| files: packages/* | |
| name: ${{ env.release_name }} | |
| tag_name: ${{ env.tag_name }} | |
| target_commitish: ${{ env.release_branch }} | |
| prerelease: false | |
| token: ${{ secrets.CI_GITHUB_TOKEN }} | |
| repository: rabbitmq/rabbitmq-perf-test | |
| - name: Trigger Perf Test Docker image build | |
| uses: peter-evans/repository-dispatch@v3 | |
| with: | |
| event-type: new_snapshot | |
| client-payload: >- | |
| {"archive_url" : "https://github.com/rabbitmq/rabbitmq-perf-test/releases/download/${{ env.tag_name }}/perf-test-${{ env.release_version}}.jar", | |
| "tags": "pivotalrabbitmq/perf-test:latest,pivotalrabbitmq/perf-test:${{ env.release_version }}"} | |
| - name: Generate documentation | |
| run: | | |
| rm -rf target/generated-docs | |
| make doc | |
| - name: Commit documentation changes | |
| run: | | |
| git config user.name "rabbitmq-ci" | |
| git config user.email "[email protected]" | |
| ci/commit-documentation.sh |