Skip to content

Commit

Permalink
Update GPG Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jared-daniels committed Nov 20, 2024
1 parent 7deaa02 commit 62c90bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/beta-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Run MVN Verify
run: |
mvn -P coverage -B verify --file pom.xml
mvn -P coverage -B verify
deploy:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -114,8 +114,13 @@ jobs:
git tag -a v${{ steps.new_version.outputs.new_version }} -m "Tagging v${{ steps.new_version.outputs.new_version }}"
git push origin v${{ steps.new_version.outputs.new_version }}
- name: Configure GPG
run: |
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --import
echo "${{ secrets.GPG_PUBLIC_KEY }}" | gpg --import
- name: Publish to Maven Central Beta
run: |
mvn -pl library javadoc:jar
mvn -pl library deploy -P deploy-to-maven-central-beta -DskipTests --batch-mode
mvn -pl library deploy -P deploy-to-maven-central-beta -DskipTests -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} --batch-mode
2 changes: 1 addition & 1 deletion library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
</execution>
</executions>
<configuration>
<passphrase>${gpg.GPG_PASSPHRASE}</passphrase>
<passphrase>${gpg.passphrase}</passphrase>
</configuration>
</plugin>

Expand Down

0 comments on commit 62c90bc

Please sign in to comment.