diff --git a/.github/workflows/README.md b/.github/workflows/README.md index e186a67..c2539d0 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -10,7 +10,7 @@ This directory contains the GitHub Actions workflows for the project. - **Runs on**: Ubuntu latest ### 2. release.yml -- **Trigger**: Creation of tags matching semantic versioning pattern (e.g., `1.4.0`, `2.0.1`) +- **Trigger**: Creation of tags matching semantic versioning pattern (e.g., `1.4.1`, `2.0.1`) - **Purpose**: Automatically release to Maven Central and create GitHub Release - **Runs on**: Ubuntu latest - **Requires secrets**: @@ -44,7 +44,7 @@ To enable automatic releases, you need to configure the following secrets in you ## Release Process ### Automatic Release -1. Create and push a new tag with semantic versioning format (e.g., `git tag 1.4.0 && git push origin 1.4.0`) +1. Create and push a new tag with semantic versioning format (e.g., `git tag 1.4.1 && git push origin 1.4.1`) 2. The release workflow will automatically: - Build and test the project - Sign the artifacts with GPG diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7395faf..d249d72 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,16 @@ name: Release to Maven Central on: - push: - tags: - - 'v[0-9]+.[0-9]+.[0-9]+' + workflow_dispatch: + inputs: + releaseVersion: + description: 'Release and tag version' + required: true + default: "v1.5.0-dev.N" + developmentVersion: + description: 'Version to use for new working copy' + required: true + default: '2.0.0-SNAPSHOT' jobs: release: @@ -28,6 +35,15 @@ jobs: git config user.email "actions@github.com" git config user.name "GitHub Actions" + - name: Run release prepare + env: + RELEASE_VERSION: ${{ github.event.inputs.releaseVersion }} + DEVELOPMENT_VERSION: ${{ github.event.inputs.developmentVersion }} + run: | + ./mvnw release:prepare -s .maven_settings.xml -DskipTests -Darguments=-DskipTests \ + -DreleaseVersion="$RELEASE_VERSION" -Dtag="$RELEASE_VERSION" \ + -DdevelopmentVersion="$DEVELOPMENT_VERSION" + - name: Publish to Maven Central run: | ./mvnw -B clean deploy -PsonatypeRelease -DskipTests diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bd957b..d2b2926 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## [Unreleased] + +## [1.4.1] - 2025-11-07 - Bump httpclient from 4.5.14 to httpclient5 5.5.1 - Bump various maven plugins @@ -17,7 +19,6 @@ - Add support for environment variable `TARANTOOL_REGISTRY` - Remove enterprise tests - ## [1.3.2] - 2024-04-25 - Fix NullPointerException during building docker image when images with null tags exist on a local machine. diff --git a/README.md b/README.md index fb6524c..bbf1af7 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Add the Maven dependency: io.tarantool testcontainers-java-tarantool - 1.4.0 + 1.4.1 ```