-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (47 loc) · 1.86 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Release Stream PerfTest
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
- name: Release Stream PerfTest
run: |
git config user.name "rabbitmq-ci"
git config user.email "[email protected]"
ci/release-stream-perf-test.sh
- name: Package Stream Perf Test
run: ci/package-stream-perf-test.sh
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
- name: Push to GitHub Release
uses: softprops/action-gh-release@v1
with:
files: packages/*
name: ${{ env.release_name }}
tag_name: ${{ env.tag_name }}
target_commitish: ${{ env.release_branch }}
prerelease: ${{ env.prerelease }}
repository: rabbitmq/rabbitmq-stream-stream-perf
- name: Trigger Stream Perf Test Docker image build
uses: peter-evans/repository-dispatch@v2
with:
event-type: new_release
client-payload: >-
{"version": "${{ env.release_version }}",
"url" : "https://github.com/rabbitmq/rabbitmq-stream-perf-test/releases/download/v${{ env.release_version }}/stream-perf-test-${{ env.release_version }}.jar",
"tags": "pivotalrabbitmq/stream-perf-test:latest,pivotalrabbitmq/stream-perf-test:${{ env.release_version }}"}
- name: Publish Documentation
run: |
git config user.name "rabbitmq-ci"
git config user.email "[email protected]"
ci/publish-documentation-to-github-pages.sh