Skip to content

Commit e21400b

Browse files
committed
cleanup mise and use JDK 25 for release build as well
Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent 9fa1038 commit e21400b

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,13 @@ jobs:
2424
with:
2525
persist-credentials: false
2626

27-
- name: Set Up JDK
28-
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5
27+
- uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0
2928
with:
30-
java-version: 21
31-
distribution: temurin
29+
version: v2025.11.1
30+
sha256: d4bec11aeb5b13180c596b70abf59716acda20131dbc3df8b9146f97cecf645c
3231

33-
- name: Build with Maven
34-
run: ./scripts/build-release.sh
32+
- name: Build release version
33+
run: mise run build-release
3534
env:
3635
TAG: ${{ github.ref_name }}
3736

.github/workflows/test-release-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
2828
restore-keys: |
2929
${{ runner.os }}-maven-
30-
- name: Run the Maven verify phase
31-
run: ./scripts/build-release.sh
30+
- name: Build release version
31+
run: mise run build-release
3232
env:
3333
# don't ues the current snapshot version, to test a more realistic release
3434
TAG: ${{ github.run_number }}

.mise/tasks/build-release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env bash
22

33
#MISE description="Build release package"
4-
#MISE env={TAG = "1.5.0-SNAPSHOT"}
4+
#MISE arg "<tag>" env="TAG" default="1.5.0-SNAPSHOT"
55

66
set -euo pipefail
77

8-
VERSION=${TAG#v}
8+
VERSION=${usage_tag#v}
99

10-
./scripts/set-version.sh "$VERSION"
10+
mise run set-version "$VERSION"
1111
mvn -B package -P 'release,!default' -Dmaven.test.skip=true

0 commit comments

Comments
 (0)