From 7ee4b64723794c9849b5921dd7b1dea7dcef62e5 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Thu, 21 Sep 2023 08:31:36 -0700 Subject: [PATCH] Added setting GPG_TTY --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 11b5183..13d09b0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,7 +25,7 @@ jobs: - uses: gradle/gradle-build-action@v2 - name: Import key - run: echo "${{ secrets.SIGN_SECRET_KEY }}" | gpg --batch --import + run: echo "${{ secrets.SIGN_SECRET_KEY }}" | GPG_TTY=$(tty) gpg --batch --import - name: Publish Multiplatform release run: ./gradlew publishKotlinMultiplatformPublicationToOSSRHRepository @@ -54,7 +54,7 @@ jobs: - uses: gradle/gradle-build-action@v2 - name: Import key - run: echo "${{ secrets.SIGN_SECRET_KEY }}" | gpg --batch --import + run: echo "${{ secrets.SIGN_SECRET_KEY }}" | GPG_TTY=$(tty) gpg --batch --import - name: Publish Linux x64 release run: ./gradlew publishLinuxX64PublicationToOSSRHRepository @@ -83,7 +83,7 @@ jobs: - uses: gradle/gradle-build-action@v2 - name: Import key - run: echo "${{ secrets.SIGN_SECRET_KEY }}" | gpg --batch --import + run: echo "${{ secrets.SIGN_SECRET_KEY }}" | GPG_TTY=$(tty) gpg --batch --import - name: Publish run: ./gradlew ${{ matrix.target }}