Skip to content

Commit

Permalink
build: Import GPG key earlier in maven.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-frak committed May 10, 2022
1 parent 124bb2b commit d3954b7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'
Expand All @@ -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:
Expand Down

0 comments on commit d3954b7

Please sign in to comment.