Skip to content

Commit

Permalink
Made GPG_TTY global
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Sep 21, 2023
1 parent 7ee4b64 commit 0f12abb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 0f12abb

Please sign in to comment.