Skip to content

Commit

Permalink
fix2 deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
nkysg committed Dec 24, 2023
1 parent 33757d7 commit b5df879
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions .github/workflows/maven_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,21 @@ jobs:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN

- name: Install gpg secret key
run: |
export GPG_TTY=$(tty)
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --import
gpg --list-secret-keys --keyid-format LONG
server-username: ${{ secrets.OSSRH_USERNAME }}
server-password: ${{ secrets.OSSRH_TOKEN }}
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
gpg-passphrase: ${{ secrets.OSSRH_GPG_PASSPHRASE }}
cache: 'maven
- name: Publish to Maven Central repository
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
SIGN_KEY_PASS: ${{ secrets.OSSRH_GPG_PASSPHRASE }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
run: |
cat ~/.m2/settings.xml
echo $MAVEN_USERNAME
echo $MAVEN_PASSWORD
mvn \
--no-transfer-progress \
-Dgpg.passphrase=${{ secrets.OSSRH_GPG_PASSPHRASE }} \
clean deploy
mvn -U -B clean deploy -P release

0 comments on commit b5df879

Please sign in to comment.