Skip to content

Commit eb7edaf

Browse files
authored
Update release.yml
1 parent 973cbff commit eb7edaf

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
permissions:
1414
contents: write
15-
steps:
16-
- name: Setup Signing Key
17-
run: |
18-
gpg-agent --daemon --default-cache-ttl 7200
19-
echo -e "${{ secrets.GPG_SIGNING_KEY }}" | gpg --batch --import --no-tty
20-
echo "hello world" > temp.txt
21-
gpg --detach-sig --yes -v --output=/dev/null --pinentry-mode loopback --passphrase "${{ secrets.GPG_PASSPHRASE }}" temp.txt
22-
rm temp.txt
23-
gpg --list-secret-keys --keyid-format LONG
24-
15+
steps:
2516
- name: Checkout
2617
uses: actions/[email protected]
2718

@@ -34,6 +25,8 @@ jobs:
3425
server-id: sonatype-nexus-staging
3526
server-username: CI_DEPLOY_USERNAME
3627
server-password: CI_DEPLOY_PASSWORD
28+
gpg-private-key: ${{ secrets.GPG_SIGNING_KEY }}
29+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
3730

3831
- name: Bump Version Number
3932
run: |
@@ -51,6 +44,7 @@ jobs:
5144
env:
5245
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
5346
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
47+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
5448
run:
5549
mvn --no-transfer-progress -pl '!eclipse_plugin' -P sonatype-oss-release clean deploy -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}"
5650

0 commit comments

Comments
 (0)