Skip to content

Commit 81f4309

Browse files
committed
ci: remove base64 decoding of gpg key
1 parent 3389574 commit 81f4309

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/publish-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Publish artifact
4040
env:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
GPG_KEY_BASE64: ${{ secrets.GPG_KEY_BASE64 }}
42+
GPG_KEYS: ${{ secrets.GPG_KEYS }}
4343
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
4444
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
4545
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
@@ -48,7 +48,7 @@ jobs:
4848
# The GITHUB_REF tag comes in the format 'refs/tags/xxx'.
4949
# So if we split on '/' and take the 3rd value, we can get the release name.
5050
run: |
51-
export GPG_TTY=$(tty) && echo ${GPG_KEY_BASE64} | base64 --decode | gpg --fast-import --batch
51+
export GPG_TTY=$(tty) && echo ${GPG_KEYS} | gpg --fast-import --batch
5252
NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
5353
REPO_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}')
5454
IMAGE=${IMAGE_BASE_NAME}/${REPO_NAME}:${NEW_VERSION}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ build/
1010
/gradle/daemon/
1111
/gradle/native/
1212
/gradle/wrapper/dists/
13+
14+
.DS_Store

0 commit comments

Comments
 (0)