Skip to content

Commit

Permalink
Try a different tutorial (#27)
Browse files Browse the repository at this point in the history
Using https://medium.com/@jtbsorensen/publish-your-artifact-to-the-maven-central-repository-using-github-actions-15d3b5d9ce88 let's eliminate the settings.xml file, which doesn't seem to work, and try the config values again
  • Loading branch information
tspence authored Oct 4, 2024
1 parent 76d9c60 commit 1dbb23e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
with:
distribution: 'temurin'
java-version: 21
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

- name: Verify with Maven
if: github.event_name == 'pull_request'
Expand Down Expand Up @@ -59,4 +62,6 @@ jobs:
run: mvn -B -PsonatypeDeploy deploy -Dserver.username="${{ secrets.MAVEN_USERNAME }}" -Dserver.password="${{ secrets.MAVEN_CENTRAL_TOKEN }}"
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
MAVEN_GPG_KEY: ${{ secrets.GPG_SIGNING_KEY }}
MAVEN_GPG_KEY: ${{ secrets.GPG_SIGNING_KEY }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
15 changes: 0 additions & 15 deletions settings.xml

This file was deleted.

0 comments on commit 1dbb23e

Please sign in to comment.