Skip to content

Commit

Permalink
Add a wrapper to the gpg command used by sbt ci-release
Browse files Browse the repository at this point in the history
 Conflicts:
	.github/workflows/ci.yml
  • Loading branch information
MaciejG604 authored and alexarchambault committed Jul 8, 2023
1 parent c602992 commit 1139fc4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/scripts/wrap-gpg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env sh

mkdir -p ~/mybin
touch ~/mybin/gpg
chmod +x ~/mybin/gpg
echo '#!/usr/bin/env sh' > ~/mybin/gpg
echo "$(which gpg) --no-tty --yes \"\$@\"" >> ~/mybin/gpg
echo "$HOME/mybin" >> $GITHUB_PATH
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ jobs:
- run: .github/scripts/gpg-setup.sh
env:
PGP_SECRET: ${{ secrets.PUBLISH_SECRET_KEY }}
- name: Wrap GPG binary
run: .github/scripts/wrap-gpg.sh
- name: Release
run: sbtn ci-release
env:
Expand Down

0 comments on commit 1139fc4

Please sign in to comment.