diff --git a/.github/scripts/upgrade_native_image_version.sh b/.github/scripts/upgrade_native_image_version.sh new file mode 100644 index 000000000..7c978d0b0 --- /dev/null +++ b/.github/scripts/upgrade_native_image_version.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# +# Copyright 2024 asyncer.io projects +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +set -e + +VERSION=$(grep 'project.dev.io.asyncer\\:r2dbc-mysql=' r2dbc-mysql/release.properties | cut -d'=' -f2) + +echo 'Set test-native-image version to' $VERSION +./mvnw -pl test-native-image versions:set -DnewVersion=$VERSION +git add test-native-image/pom.xml diff --git a/.github/workflows/cd-release.yml b/.github/workflows/cd-release.yml index c11ba2af7..0bef91e4a 100644 --- a/.github/workflows/cd-release.yml +++ b/.github/workflows/cd-release.yml @@ -47,9 +47,16 @@ jobs: key: ${{ runner.os }}-prepare-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-prepare- + - name: DryRun Release Prepare + run: | + ./mvnw -B -ntp -pl r2dbc-mysql release:prepare -DpreparationGoals=clean -DdryRun=true -DskipTests=true + + - name: Upgrade Native Image Version + run: ./.github/scripts/upgrade_native_image_version.sh + - name: Run release prepare command run: | - ./mvnw -B -ntp -pl r2dbc-mysql release:prepare -DpreparationGoals=clean -DskipTests=true + ./mvnw -B -ntp -pl r2dbc-mysql release:prepare -DpreparationGoals=clean -Dresume=false -DskipTests=true ./mvnw -B -ntp clean - name: Ensure Prepared diff --git a/test-native-image/pom.xml b/test-native-image/pom.xml index adb8dcd94..4d055475d 100644 --- a/test-native-image/pom.xml +++ b/test-native-image/pom.xml @@ -5,7 +5,7 @@ 4.0.0 io.asyncer test-native-image - 1.1.2-SNAPSHOT + 1.1.3-SNAPSHOT UTF-8