File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 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
26172718
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 : |
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
You can’t perform that action at this time.
0 commit comments