Prepare Release #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prepare Release | |
on: | |
workflow_dispatch: | |
inputs: | |
next-version: | |
description: 'Override next development version (e.g. 5.0.0-SNAPSHOT). If not set then the version will be calculated by maven release plugin' | |
jobs: | |
prepare-release: | |
runs-on: ubuntu-latest | |
name: Prepare release | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: "${{ secrets.GH_PAT }}" | |
- name: Setup JDK | |
uses: ./.github/actions/setup-jdk | |
- name: Prepare release | |
run: | | |
if [ -n "${{ github.event.inputs.next-version }}" ]; then | |
EXTRA_ARGS=-DdevelopmentVersion=${{ github.event.inputs.next-version }} | |
fi | |
git config user.name "devopsHazelcast" | |
git config user.email "<[email protected]>" | |
./mvnw --batch-mode release:prepare -Prelease -Darguments="-DskipTests" $EXTRA_ARGS | |
./mvnw --batch-mode release:clean | |
- name: Push changes | |
run: | | |
git push | |
git push --tags |