-
-
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 #50 from peter-szrnka/41-enhance-release-publisher…
…-github-action Enhance release publisher GitHub action
- Loading branch information
Showing
1 changed file
with
31 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,31 @@ | ||
name: Test Action | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
releaseVersion: | ||
description: "Default version to use when preparing a release." | ||
required: true | ||
default: "X.Y.Z" | ||
developmentVersion: | ||
description: "Default version to use for new local working copy." | ||
required: true | ||
default: "X.Y.Z-SNAPSHOT" | ||
jobs: | ||
testRun: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: install-secret-key | ||
name: Install gpg secret key | ||
run: | | ||
# Install gpg secret key | ||
cat <(echo -e "${{ secrets.GPG_SIGNING_KEY }}") | gpg --batch --import | ||
# Verify gpg secret key | ||
gpg --list-secret-keys --keyid-format LONG | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: main | ||
env: | ||
branch: main | ||
working_directory: ./code/ | ||
- name: Update version in pom.xml | ||
run: mvn -B versions:set -DnewVersion=${{ github.event.inputs.releaseVersion }} -DgenerateBackupPoms=false |