Skip to content

Commit

Permalink
adding clean
Browse files Browse the repository at this point in the history
  • Loading branch information
GoncaloPT committed Apr 10, 2023
1 parent eefeac6 commit df6aeed
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,16 @@ jobs:
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
# Verify gpg secret key
gpg --list-secret-keys --keyid-format LONG
# hack..
export GPG_TTY=$(tty)
- name: Publish package to the Maven Central Repository
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
run: |
mvn \
--no-transfer-progress \
--batch-mode \
-Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} \
deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
clean deploy
# see this for keys https://central.sonatype.org/publish/publish-maven/#distributing-your-public-key

0 comments on commit df6aeed

Please sign in to comment.