Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ucf4 committed Aug 29, 2024
1 parent 6056f18 commit ceb8487
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/deploy-to-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,26 @@ jobs:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Decrypt GPG key
- name: Decrypt and Import GPG Key
run: |
gpgconf --kill gpg-agent
gpgconf --launch gpg-agent
export GPG_TTY=$(tty) || true
echo "$GPG_PRIVATE_KEY" | gpg --no-tty --import
gpgconf --kill gpg-agent || true
gpgconf --launch gpg-agent || true
echo "$GPG_PRIVATE_KEY" | gpg --batch --no-tty --import
gpg --list-secret-keys
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PRIVATE_KEY: '${{ secrets.GPG_PRIVATE_KEY }}'

- name: Build with Maven
run: mvn clean install
- name: Publish to Maven Central
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
SONATYPE_USERNAME: '${{ secrets.SONATYPE_USERNAME }}'
SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASSWORD }}'
GPG_PASSPHRASE: '${{ secrets.GPG_PASSPHRASE }}'
run: mvn clean deploy -P release --settings .github/maven-settings.xml
- name: Verify JAR signing
run: gpg --verify target/*.asc

0 comments on commit ceb8487

Please sign in to comment.