Skip to content

Commit

Permalink
Merge pull request #50 from peter-szrnka/41-enhance-release-publisher…
Browse files Browse the repository at this point in the history
…-github-action

Enhance release publisher GitHub action
  • Loading branch information
peter-szrnka authored Nov 15, 2023
2 parents b429c6f + 7b938f6 commit 8676ad1
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test1.yml
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

0 comments on commit 8676ad1

Please sign in to comment.