Skip to content

Commit 42a55df

Browse files
committed
ci: fix gpg error "inappropriate ioctl for this device"
1 parent 83aff26 commit 42a55df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ jobs:
4242
GPG_KEY_BASE64: ${{ secrets.GPG_KEY_BASE64 }}
4343
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
4444
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
45-
run: echo $GPG_KEY_BASE64 | base64 --decode | gpg --yes --batch --import
45+
run:
46+
export GPG_TTY=$(tty) && echo $GPG_KEY_BASE64 | base64 --decode | gpg --fast-import --batch
4647

4748
- name: Publish artifact
4849
env:
@@ -57,7 +58,6 @@ jobs:
5758
run: |
5859
NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
5960
echo "New version: ${NEW_VERSION}"
60-
echo "Github username: ${GITHUB_ACTOR}"
6161
./gradlew -Pversion=${NEW_VERSION} publish
6262
./gradlew jibDockerBuild --image="${IMAGE_NAME}:${NEW_VERSION}"
6363
echo "$GITHUB_TOKEN" | docker login --username "$GITHUB_REPOSITORY" --password-stdin https://docker.pkg.github.com

0 commit comments

Comments
 (0)