Skip to content

Commit 4a0a8fe

Browse files
committed
Added SSH key use.
1 parent 85f6a08 commit 4a0a8fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/maven-publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,10 @@ jobs:
2626
- uses: s4u/[email protected]
2727
with:
2828
servers: '[{"id": "ossrh", "username": "${{ secrets.DISTRIBUTION_REPOSITORY_RELEASE_USERNAME }}", "password": "${{ secrets.DISTRIBUTION_REPOSITORY_RELEASE_PASSWORD }}"}]'
29+
30+
- uses: webfactory/[email protected]
31+
with:
32+
ssh-private-key: ${{ secrets.TAG_SSH_KEY }}
33+
2934
- name: Release to production
3035
run: mvn clean release:clean release:prepare release:perform -B -DaltDeploymentRepository=ossrh::https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ -Darguments="-Ddevelop.api.key=${{ secrets.DEVELOP_SERVER_API_KEY }} -Dprod.na1.api.key=${{ secrets.PROD_EU1_SERVER_API_KEY }} -Dprod.eu1.api.key=${{ secrets.PROD_NA1_SERVER_API_KEY }}" -P release

0 commit comments

Comments
 (0)