Skip to content

Commit

Permalink
Added GPG passphrase as workflow input
Browse files Browse the repository at this point in the history
  • Loading branch information
amaembo committed Jan 8, 2022
1 parent d7eccfb commit e234b5b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
version:
description: "Release version"
required: true
passphrase:
description: "GPG passphrase"
required: true

jobs:
release:
Expand Down Expand Up @@ -53,7 +56,7 @@ jobs:
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
MAVEN_GPG_PASSPHRASE: ${{ github.event.inputs.passphrase }}
run: |
export GPG_TTY=$(tty)
./mvnw --no-transfer-progress -B --file pom.xml \
Expand All @@ -73,4 +76,4 @@ jobs:
name: jreleaser-logs
path: |
target/jreleaser/trace.log
target/jreleaser/output.properties
target/jreleaser/output.properties

0 comments on commit e234b5b

Please sign in to comment.