-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Import GPG key earlier in maven.yml
- Loading branch information
1 parent
124bb2b
commit d3954b7
Showing
1 changed file
with
6 additions
and
6 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 |
---|---|---|
|
@@ -18,6 +18,12 @@ jobs: | |
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
- name: Import GPG key | ||
id: import_gpg | ||
uses: crazy-max/ghaction-import-gpg@v2 | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
- name: Set POM version to release version | ||
run: mvn versions:set -DnewVersion=${GITHUB_REF##*/} | ||
- name: Replace 'since SNAPSHOT' occurrences with 'since ${{ github.ref_name }}' | ||
|
@@ -29,12 +35,6 @@ jobs: | |
run: | | ||
git add pom.xml ./\*.java ./\*.md | ||
git commit -m "Set version to $(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" | ||
- name: Import GPG key | ||
id: import_gpg | ||
uses: crazy-max/ghaction-import-gpg@v2 | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
- name: Publish package | ||
run: mvn -B deploy -P release-sign-artifacts | ||
env: | ||
|