We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bbd523 commit a1bab4aCopy full SHA for a1bab4a
.github/scripts/gpg-setup.sh
@@ -0,0 +1,10 @@
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
.github/workflows/ci.yml
@@ -57,7 +57,10 @@ jobs:
57
with:
58
jvm: 8
59
apps: sbt sbtn
60
- - uses: olafurpg/setup-gpg@v3
+ - run: .github/scripts/gpg-setup.sh
61
+ shell: bash
62
+ env:
63
+ PGP_SECRET: ${{ secrets.PUBLISH_SECRET_KEY }}
64
- name: Release
65
run: sbtn ci-release
66
env:
0 commit comments