Skip to content

Commit a1bab4a

Browse files
Try to fix gpg issues on CI
1 parent 5bbd523 commit a1bab4a

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/scripts/gpg-setup.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ jobs:
5757
with:
5858
jvm: 8
5959
apps: sbt sbtn
60-
- uses: olafurpg/setup-gpg@v3
60+
- run: .github/scripts/gpg-setup.sh
61+
shell: bash
62+
env:
63+
PGP_SECRET: ${{ secrets.PUBLISH_SECRET_KEY }}
6164
- name: Release
6265
run: sbtn ci-release
6366
env:

0 commit comments

Comments
 (0)