Skip to content

Commit

Permalink
Lets not skip gpg2
Browse files Browse the repository at this point in the history
  • Loading branch information
jansoren committed Apr 6, 2024
1 parent 62a00bf commit f18495c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install secret key
shell: bash
run: |
# Install secret key
cat <(echo -e "${{ secrets.GPG_SIGNING_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
Expand All @@ -26,7 +20,7 @@ jobs:
- name: Set version
run: mvn versions:set -DnewVersion=${{ github.event.release.tag_name }}
- name: Publish package
run: mvn -P release --batch-mode -Dgpg.passphrase="${{ secrets.GPG_SIGNING_KEY_PASSWORD }}" deploy -DskipTests
run: mvn -P release --batch-mode deploy -DskipTests
env:
MAVEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
Expand Down

0 comments on commit f18495c

Please sign in to comment.