Skip to content

Commit

Permalink
Update maven-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
filip26 authored Feb 16, 2024
1 parent 58bcf4f commit a09ef36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
java-package: 'jdk'
cache: 'maven'
# java-package: 'jdk'
# cache: 'maven'
server-id: ossrh
# - name: Configure Git User
# run: |
# git config user.email "actions@github.com"
# git config user.name "GitHub Actions"
# echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Import GPG Key
uses: crazy-max/ghaction-import-gpg@v5.0.0
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Expand All @@ -44,7 +44,7 @@ jobs:
# echo "auto_release=false" >> $GITHUB_ENV
# fi
- name: Publish package
run: mvn --batch-mode -Pmaven-central -Dgpg.passphrase=${{ secrets.MAVEN_GPG_PASSPHRASE }} deploy
run: mvn -B -Pmaven-central -Dgpg.passphrase=${{ secrets.MAVEN_GPG_PASSPHRASE }} -s maven-settings.xml deploy
# -DreleaseVersion=${{ github.event.inputs.releaseVersion }} \
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
Expand Down

0 comments on commit a09ef36

Please sign in to comment.