Skip to content

Commit fb41321

Browse files
authored
Merge pull request #34 from polyapi/develop
Develop
2 parents f631c3c + b1105d5 commit fb41321

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/maven-publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ jobs:
2727
server-password: OSSRH_PASSWORD
2828
settings-path: ${{ github.workspace }}
2929

30+
- name: Install gpg secret key
31+
run: |
32+
# Install gpg secret key
33+
cat <(echo -e "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}") | gpg --batch --import
34+
# Verify gpg secret key
35+
gpg --list-secret-keys --keyid-format LONG
36+
3037
- uses: webfactory/[email protected]
3138
with:
3239
ssh-private-key: ${{ secrets.TAG_SSH_KEY }}
@@ -35,5 +42,4 @@ jobs:
3542
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
3643
env:
3744
OSSRH_USERNAME: ${{ secrets.DISTRIBUTION_REPOSITORY_RELEASE_USERNAME }}
38-
OSSRH_PASSWORD: ${{ secrets.DISTRIBUTION_REPOSITORY_RELEASE_PASSWORD }}
39-
MAVEN_GPG_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
45+
OSSRH_PASSWORD: ${{ secrets.DISTRIBUTION_REPOSITORY_RELEASE_PASSWORD }}

0 commit comments

Comments
 (0)