From 09b54f65f97670480ca18c656d367dd8a394ee56 Mon Sep 17 00:00:00 2001 From: Lifailon <116945542+Lifailon@users.noreply.github.com> Date: Thu, 5 Nov 2026 19:24:26 +0300 Subject: [PATCH] add fingerprint from import_gpg to go release --- .github/workflows/go-release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index 62c5a83..bfa1366 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -55,7 +55,8 @@ jobs: run: GOTOOLCHAIN=auto go install github.com/goreleaser/goreleaser/v2@latest - name: Import GPG key - if: ${{ github.event_name == 'push' }} + id: import_gpg + if: ${{ github.event_name == 'push' || github.event.inputs.Tag == 'true' }} uses: crazy-max/ghaction-import-gpg@v7 with: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} @@ -68,10 +69,12 @@ jobs: run: cat dist/CHANGELOG.md >> $GITHUB_STEP_SUMMARY - name: Go release publish - if: ${{ github.event_name == 'push' }} + if: ${{ github.event_name == 'push' || github.event.inputs.Tag == 'true' }} uses: goreleaser/goreleaser-action@v7 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} with: distribution: goreleaser args: release --clean