Skip to content

Commit 3d5436f

Browse files
committed
release automation
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent 751143b commit 3d5436f

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
cache: 'maven'
2929

3030
- name: Build with Maven
31-
run: mvn -B package -P release -Dmaven.test.skip=true
31+
run: ./scripts/build-release.sh ${{ github.ref_name }}
3232

3333
- name: Set up Apache Maven Central
3434
uses: actions/setup-java@v4

RELEASING.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
## Update Version
2-
3-
In a new PR, update the version in `pom.xml` using
4-
5-
```shell
6-
mvn versions:set -DnewVersion=<VERSION>
7-
```
8-
9-
Commit the changes and open a PR.
10-
111
## Create a Release
122

133
1. Go to https://github.com/prometheus/client_java/releases

scripts/build-release.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
TAG=$1
6+
VERSION=${TAG#v}
7+
8+
mvn versions:set -DnewVersion=$VERSION
9+
cd integration-tests/it-spring-boot-smoke-test
10+
mvn versions:set -DnewVersion=$VERSION
11+
mvn -B package -P release -Dmaven.test.skip=true

0 commit comments

Comments
 (0)