Skip to content

Commit 545b840

Browse files
committed
Correct version auto-update
1 parent 24f188f commit 545b840

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
#
3+
# Copyright 2024 asyncer.io projects
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
set -e
18+
19+
VERSION=$(grep 'project.dev.io.asyncer\\:r2dbc-mysql=' r2dbc-mysql/release.properties | cut -d'=' -f2)
20+
21+
echo 'Set test-native-image version to' $VERSION
22+
./mvnw -pl test-native-image versions:set -DnewVersion=$VERSION
23+
git add test-native-image/pom.xml

.github/workflows/cd-release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,16 @@ jobs:
4747
key: ${{ runner.os }}-prepare-${{ hashFiles('**/pom.xml') }}
4848
restore-keys: ${{ runner.os }}-prepare-
4949

50+
- name: DryRun Release Prepare
51+
run: |
52+
./mvnw -B -ntp -pl r2dbc-mysql release:prepare -DpreparationGoals=clean -DdryRun=true -DskipTests=true
53+
54+
- name: Upgrade Native Image Version
55+
run: ./.github/scripts/upgrade_native_image_version.sh
56+
5057
- name: Run release prepare command
5158
run: |
52-
./mvnw -B -ntp -pl r2dbc-mysql release:prepare -DpreparationGoals=clean -DskipTests=true
59+
./mvnw -B -ntp -pl r2dbc-mysql release:prepare -DpreparationGoals=clean -Dresume=false -DskipTests=true
5360
./mvnw -B -ntp clean
5461
5562
- name: Ensure Prepared

test-native-image/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>io.asyncer</groupId>
77
<artifactId>test-native-image</artifactId>
8-
<version>1.1.2-SNAPSHOT</version>
8+
<version>1.1.3-SNAPSHOT</version>
99

1010
<properties>
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

0 commit comments

Comments
 (0)