File tree 2 files changed +17
-4
lines changed
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:
35
35
-
uses :
coursier/[email protected]
36
36
with :
37
37
jvm : 8
38
+ - run : .github/scripts/gpg-setup.sh
39
+ env :
40
+ PGP_SECRET : ${{ secrets.PUBLISH_SECRET_KEY }}
38
41
- name : Release
39
42
run : sbtn ci-release
40
43
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