File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -108,4 +108,9 @@ jobs:
108108 echo "$PGP_SECRET" | base64 -d > /tmp/signing-key.gpg 
109109 echo "$PGP_PASSPHRASE" | gpg --pinentry-mode loopback --passphrase-fd 0 --import /tmp/signing-key.gpg 
110110
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+ 
111116 - run : sbt ++${{ matrix.scala }} release 
Original file line number Diff line number Diff line change @@ -85,6 +85,11 @@ ThisBuild / githubWorkflowPublishPreamble := Seq(
8585 " echo \" $PGP_SECRET\"  | base64 -d > /tmp/signing-key.gpg" 
8686 " echo \" $PGP_PASSPHRASE\"  | gpg --pinentry-mode loopback --passphrase-fd 0 --import /tmp/signing-key.gpg" 
8787 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" 
8893 env =  Map (" PGP_PASSPHRASE" ->  " ${{ secrets.PGP_PASSPHRASE }}" 
8994
9095//  environments
                         You can’t perform that action at this time. 
           
                  
0 commit comments