-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added maven releaseplugin and corresponding GitHub workflow
- Loading branch information
1 parent
a15a6e2
commit 5467efc
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: release version | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
releaseVersion: | ||
description: the release version | ||
required: true | ||
type: String | ||
developmentVersion: | ||
description: the next dev iteration version | ||
required: true | ||
type: String | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '21' | ||
cache: 'maven' | ||
- name: Configure Git User | ||
run: | | ||
git config user.email "[email protected]" | ||
git config user.name "ReleaseAction[bot]" | ||
- name: Release | ||
run: ./mvnw -B release:clean release:prepare -DreleaseVersion=$RELEASE_VERSION -DdevelopmentVersion=$DEV_VERSION | ||
env: | ||
RELEASE_VERSION: ${{ github.event.inputs.releaseVersion }} | ||
DEV_VERSION: ${{ github.event.inputs.developmentVersion }} |
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