Skip to content

Commit 13dc199

Browse files
committed
Attempting workaround for weird GPG tty issue
1 parent 56cf1ff commit 13dc199

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: .github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ jobs:
101101
~/Library/Caches/Coursier/v1
102102
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
103103

104+
- name: Export GPG_TTY
105+
run: echo "GPG_TTY=$(tty)" >> $GITHUB_ENV
106+
104107
- name: Import signing key
105108
run: echo $PGP_SECRET | base64 -d | gpg --import
106109

Diff for: build.sbt

+3
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ ThisBuild / spiewakMainBranches := Seq("main")
7979
ThisBuild / githubWorkflowArtifactUpload := false
8080

8181
// 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+
8285
ThisBuild / githubWorkflowPublishPreamble +=
8386
WorkflowStep.Run(
8487
List("echo \"$PGP_PASSPHRASE\" | gpg --batch --yes --passphrase-fd 0 build.sbt &> /dev/null"),

0 commit comments

Comments
 (0)