Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ucf4 committed Aug 27, 2024
1 parent e82778f commit 3923c46
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy-to-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ jobs:
# env:
# LIB_GITHUB_ACTOR: '${{ secrets.LIB_GITHUB_ACTOR }}'
# LIB_GITHUB_TOKEN: '${{ secrets.LIB_GITHUB_TOKEN }}'
- name: Configure GPG Key
run: |
echo -n "$GPG_PRIVATE_KEY" | gpg --import
# - name: Configure GPG Key
# run: |
# echo -n "$GPG_PRIVATE_KEY" | gpg --import

- name: Publish package to Maven Central
run: mvn clean -X deploy --settings .github/workflows/mvn-settings.xml
#run: gpg --list-keys
env:
SONATYPE_USERNAME: '${{ secrets.SONATYPE_USERNAME }}'
SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASSWORD }}'
GPG_PRIVATE_KEY: '${{ secrets.GPG_PRIVATE_KEY }}'
GPG_PASSPHRASE: '${{ secrets.GPG_PASSPHRASE }}'

# SONATYPE_USERNAME: '${{ secrets.SONATYPE_USERNAME }}'
# SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASSWORD }}'
# GPG_PRIVATE_KEY: '${{ secrets.GPG_PRIVATE_KEY }}'
# GPG_PASSPHRASE: '${{ secrets.GPG_PASSPHRASE }}'
TEST_PASSPHRASE: '${{ secrets.TEST_PASSPHRASE }}'
6 changes: 3 additions & 3 deletions .github/workflows/mvn-settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<password>${env.SONATYPE_PASSWORD}</password>
</server>-->
<server>
<id>sign-artifacts</id>
<privatekey>${env.GPG_PRIVATE_KEY}</privatekey>
<passphrase>${env.GPG_PASSPHRASE}</passphrase>
<id>0x26DE68BD</id>
<!--<privatekey>${env.GPG_PRIVATE_KEY}</privatekey>-->
<passphrase>${env.TEST_PASSPHRASE}</passphrase>
</server>
</servers>
</settings>
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
<goal>sign</goal>
</goals>
<configuration>
<keyname>0x26DE68BD</keyname>
<!-- Prevent gpg from using pinentry programs -->
<gpgArguments>
<arg>--pinentry-mode</arg>
Expand Down

0 comments on commit 3923c46

Please sign in to comment.