From 64bbc97df17d4c17aec7a490dd3814617d9e1a9c Mon Sep 17 00:00:00 2001 From: Dan Petersen Date: Wed, 10 Feb 2021 03:25:04 +0100 Subject: [PATCH] Remove GPG signing from test workflow --- .github/workflows/release.yml | 1 + .github/workflows/test.yml | 30 ++---------------------------- 2 files changed, 3 insertions(+), 28 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c5fd86aa..a8a96ffa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,7 @@ jobs: GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} run: | mkdir -p ~/.gnupg + chmod 0700 ~/.gnupg cat << EOF > ~/.gnupg/gpg.conf use-agent diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e8be4a0a..00fb8ee1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,34 +29,8 @@ jobs: sudo dpkg -i goreleaser_amd64.deb rm -f goreleaser_amd64.deb - - name: Import the GPG signing key - env: - GPG_KEY: ${{ secrets.GPG_KEY }} - GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - run: | - mkdir -p ~/.gnupg - - cat << EOF > ~/.gnupg/gpg.conf - use-agent - pinentry-mode loopback - EOF - - echo "$GPG_KEY" | base64 -d -i | gpg --batch --allow-secret-key-import --import - gpg --keyid-format LONG --list-secret-keys - - cat << EOF > ~/.gnupg/gpg-agent.conf - default-cache-ttl 7200 - max-cache-ttl 31536000 - allow-loopback-pinentry - allow-preset-passphrase - EOF - - echo RELOADAGENT | gpg-connect-agent - - printf '%s' "$GPG_PASSPHRASE" > ./.gpg_passphrase - - - name: Create release + name: Create snapshot env: GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }} run: | - goreleaser build --parallelism 2 --rm-dist --snapshot --timeout 1h + goreleaser build --config .goreleaser.test.yml --parallelism 2 --rm-dist --snapshot --timeout 1h