From 0f12abb0f55b123a48db09410409a3327a19c645 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Thu, 21 Sep 2023 09:19:20 -0700 Subject: [PATCH] Made GPG_TTY global --- .github/workflows/publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 13d09b0..bb63f4e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,6 +8,7 @@ env: JAVA_DISTRIBUTION: 'zulu' ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.OSSRH_USERNAME}} ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD}} + GPG_TTY: ${{ env.tty }} jobs: publish-base: @@ -25,7 +26,7 @@ jobs: - uses: gradle/gradle-build-action@v2 - name: Import key - run: echo "${{ secrets.SIGN_SECRET_KEY }}" | GPG_TTY=$(tty) gpg --batch --import + run: echo "${{ secrets.SIGN_SECRET_KEY }}" | gpg --batch --import - name: Publish Multiplatform release run: ./gradlew publishKotlinMultiplatformPublicationToOSSRHRepository @@ -54,7 +55,7 @@ jobs: - uses: gradle/gradle-build-action@v2 - name: Import key - run: echo "${{ secrets.SIGN_SECRET_KEY }}" | GPG_TTY=$(tty) gpg --batch --import + run: echo "${{ secrets.SIGN_SECRET_KEY }}" | gpg --batch --import - name: Publish Linux x64 release run: ./gradlew publishLinuxX64PublicationToOSSRHRepository @@ -83,7 +84,7 @@ jobs: - uses: gradle/gradle-build-action@v2 - name: Import key - run: echo "${{ secrets.SIGN_SECRET_KEY }}" | GPG_TTY=$(tty) gpg --batch --import + run: echo "${{ secrets.SIGN_SECRET_KEY }}" | gpg --batch --import - name: Publish run: ./gradlew ${{ matrix.target }}