Skip to content

Commit

Permalink
set up settings.xml through github actions (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal authored Jul 31, 2024
1 parent f6b2f6f commit b3f554f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/deploy_to_central.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ jobs:
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
- name: Checkout
uses: actions/checkout@v2
- name: Set up setting.xml
uses: s4u/[email protected]
with:
servers: |
[{
"id": "biscuit-auth",
"username": "${{ secrets.OSSRH_USERNAME }}",
"password": "${{ secrets.OSSRH_TOKEN }}"
}]
- name: Set up Maven Central Repository
uses: actions/setup-java@v2
with:
Expand All @@ -21,6 +30,3 @@ jobs:
server-password: MAVEN_PASSWORD
- name: Publish package
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} deploy -Pdeploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

0 comments on commit b3f554f

Please sign in to comment.