File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+
3+ # from https://github.com/coursier/apps/blob/f1d2bf568bf466a98569a85c3f23c5f3a8eb5360/.github/scripts/gpg-setup.sh
4+
5+ echo $PGP_SECRET | base64 --decode | gpg --import --no-tty --batch --yes
6+
7+ echo " allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
8+ echo " pinentry-mode loopback" >> ~/.gnupg/gpg.conf
9+
10+ gpg-connect-agent reloadagent /bye
Original file line number Diff line number Diff line change @@ -35,10 +35,13 @@ jobs:
3535 - uses : coursier/setup-action@v1.3.0
3636 with :
3737 jvm : 8
38+ - run : .github/scripts/gpg-setup.sh
39+ env :
40+ PGP_SECRET : ${{ secrets.PUBLISH_SECRET_KEY }}
3841 - name : Release
3942 run : sbtn ci-release
4043 env :
41- PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
42- PGP_SECRET : ${{ secrets.PGP_SECRET }}
43- SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
44- SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
44+ PGP_PASSPHRASE : ${{ secrets.PUBLISH_SECRET_KEY_PASSWORD }}
45+ PGP_SECRET : ${{ secrets.PUBLISH_SECRET_KEY }}
46+ SONATYPE_PASSWORD : ${{ secrets.PUBLISH_PASSWORD }}
47+ SONATYPE_USERNAME : ${{ secrets.PUBLISH_USER }}
You can’t perform that action at this time.
0 commit comments