Skip to content

Commit

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

0 comments on commit 7ee4b64

Please sign in to comment.