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 }}