File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -108,4 +108,9 @@ jobs:
108
108
echo "$PGP_SECRET" | base64 -d > /tmp/signing-key.gpg
109
109
echo "$PGP_PASSPHRASE" | gpg --pinentry-mode loopback --passphrase-fd 0 --import /tmp/signing-key.gpg
110
110
111
+ - name : Strip passphrase from signing key
112
+ env :
113
+ PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
114
+ run : echo "passwd\n$PGP_PASSPHRASE\n\n\nsave\nquit\n" | gpg --edit-key 5EBC14B0F6C55083
115
+
111
116
- run : sbt ++${{ matrix.scala }} release
Original file line number Diff line number Diff line change @@ -85,6 +85,11 @@ ThisBuild / githubWorkflowPublishPreamble := Seq(
85
85
" echo \" $PGP_SECRET\" | base64 -d > /tmp/signing-key.gpg" ,
86
86
" echo \" $PGP_PASSPHRASE\" | gpg --pinentry-mode loopback --passphrase-fd 0 --import /tmp/signing-key.gpg" ),
87
87
name = Some (" Import signing key" ),
88
+ env = Map (" PGP_PASSPHRASE" -> " ${{ secrets.PGP_PASSPHRASE }}" )),
89
+
90
+ WorkflowStep .Run (
91
+ List (" echo \" passwd\\ n$PGP_PASSPHRASE\\ n\\ n\\ nsave\\ nquit\\ n\" | gpg --edit-key 5EBC14B0F6C55083" ),
92
+ name = Some (" Strip passphrase from signing key" ),
88
93
env = Map (" PGP_PASSPHRASE" -> " ${{ secrets.PGP_PASSPHRASE }}" )))
89
94
90
95
// environments
You can’t perform that action at this time.
0 commit comments