Skip to content

Commit

Permalink
Provide settings & secrets necessary to publish github packages (#653)
Browse files Browse the repository at this point in the history
Signed-off-by: Elliot Jackson <13633636+ElliotMJackson@users.noreply.github.com>
  • Loading branch information
elliotmjackson committed Sep 28, 2022
1 parent 53ffc91 commit dd479d9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/maven-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_KEY_NAME: ${{secrets.GPG_KEY_NAME}}
GPG_PASSPHRASE: ${{secrets.GPG_PASSPHRASE}}

steps:
- uses: actions/checkout@v3
Expand Down
11 changes: 10 additions & 1 deletion java/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
<username>${env.SONATYPE_USER}</username>
<password>${env.SONATYPE_PASSWORD}</password>
</server>
<server>
<id>github</id>
<username>${env.GITHUB_ACTOR}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
<server>
<id>gpg.passphrase</id>
<passphrase>${env.GPG_PASSPHRASE}</passphrase>
</server>
</servers>
<profiles>
<profile>
Expand Down Expand Up @@ -39,4 +48,4 @@
<activeProfile>ci</activeProfile>
<activeProfile>signing</activeProfile>
</activeProfiles>
</settings>
</settings>

0 comments on commit dd479d9

Please sign in to comment.