diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f1a2fb..d275654 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ permissions: contents: write jobs: - release: + goreleaser: runs-on: ubuntu-latest steps: - @@ -18,13 +18,20 @@ jobs: with: fetch-depth: 0 - - name: Fetch all tags - run: git fetch --force --tags + name: Unshallow + run: git fetch --prune --unshallow - name: Set up Go uses: actions/setup-go@v2 with: go-version: 1.16 + - + name: Import GPG key + id: import_gpg + uses: paultyng/ghaction-import-gpg@v2.1.0 + env: + GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} + PASSPHRASE: ${{ secrets.PASSPHRASE }} - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2