Skip to content

Commit ff5c73e

Browse files
Update secrets
1 parent fa5a1e8 commit ff5c73e

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
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: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,13 @@ jobs:
3535
- uses: coursier/[email protected]
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 }}

0 commit comments

Comments
 (0)