Skip to content

Commit

Permalink
Forwarding credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-christian-schulze committed Nov 26, 2024
1 parent 0765ff3 commit fafbaab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pull-request.closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ jobs:
gpg --list-secret-keys --keyid-format LONG
- name: Deploy to Maven Central
env:
OSSRH_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: |
cd structs4java-core && mvn deploy -Prelease --settings ../deploy/settings.xml -Dmaven.repo.local=../.m2 -Drelease-composite=true -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} && cd ..
cd structs4java-maven-plugin && mvn deploy -Prelease --settings ../deploy/settings.xml -Dmaven.repo.local=../.m2 -Drelease-composite=true -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} && cd ..
Expand Down
4 changes: 2 additions & 2 deletions deploy/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<servers>
<server>
<id>central</id>
<username>${env.SONATYPE_USERNAME}</username>
<password>${env.SONATYPE_PASSWORD}</password>
<username>${env.OSSRH_USERNAME}</username>
<password>${env.OSSRH_PASSWORD}</password>
</server>
</servers>
</settings>

0 comments on commit fafbaab

Please sign in to comment.