generated from it-at-m/oss-repository-en-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from it-at-m/22-erstellung-releasekandidatvers…
…ion-von-wls-common-2 update pom und erstellungt workflow in Vorbereitung auf wls-common release
- Loading branch information
Showing
2 changed files
with
172 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,60 @@ | ||
name: dispatch wls-common release with deploy | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: "Branch to release from ?" | ||
required: true | ||
default: "main" | ||
release-version: | ||
description: "Release version ?" | ||
required: true | ||
release-tag: | ||
description: "Release tag ?" | ||
required: true | ||
development-version: | ||
description: "Next Development version ?" | ||
required: true | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
- name: Setup git user | ||
uses: fregante/setup-git-user@v2 | ||
- name: Set up JDK 17 and OSSRH auth / GPG signing | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: "17" | ||
distribution: "temurin" | ||
cache: "maven" | ||
server-id: "central" | ||
server-username: CENTRAL_USERNAME | ||
server-password: CENTRAL_PASSWORD | ||
gpg-private-key: ${{ secrets.gpg_private_key }} | ||
gpg-passphrase: SIGN_KEY_PASS | ||
- name: Perform maven release | ||
run: > | ||
mvn -B -ntp release:prepare release:perform -f wls-common/pom.xml | ||
-DreleaseVersion=${{ github.event.inputs.release-version }} | ||
-DdevelopmentVersion=${{ github.event.inputs.development-version }} | ||
-Dtag=${{ github.event.inputs.release-tag }} | ||
-Darguments="-DskipTests" | ||
env: | ||
SIGN_KEY_PASS: ${{ secrets.gpg_passphrase }} | ||
CENTRAL_USERNAME: ${{ secrets.sonatype_username }} | ||
CENTRAL_PASSWORD: ${{ secrets.sonatype_password }} | ||
- name: Create GitHub Release | ||
id: create_release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ github.event.inputs.release-tag }} | ||
draft: false | ||
prerelease: false | ||
generate_release_notes: false | ||
|
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