File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,9 @@ jobs:
101
101
~/Library/Caches/Coursier/v1
102
102
key : ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
103
103
104
+ - name : Export GPG_TTY
105
+ run : echo "GPG_TTY=$(tty)" >> $GITHUB_ENV
106
+
104
107
- name : Import signing key
105
108
run : echo $PGP_SECRET | base64 -d | gpg --import
106
109
Original file line number Diff line number Diff line change @@ -79,6 +79,9 @@ ThisBuild / spiewakMainBranches := Seq("main")
79
79
ThisBuild / githubWorkflowArtifactUpload := false
80
80
81
81
// we can remove this once we have a non-password-protected key in the secrets
82
+ ThisBuild / githubWorkflowPublishPreamble :=
83
+ WorkflowStep .ComputeVar (" GPG_TTY" , " tty" ) +: (ThisBuild / githubWorkflowPublishPreamble).value
84
+
82
85
ThisBuild / githubWorkflowPublishPreamble +=
83
86
WorkflowStep .Run (
84
87
List (" echo \" $PGP_PASSPHRASE\" | gpg --batch --yes --passphrase-fd 0 build.sbt &> /dev/null" ),
You can’t perform that action at this time.
0 commit comments