diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd95877e..f354f4d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,31 +13,31 @@ name: release on: push: tags: - - 'v*' + - "v*" + jobs: goreleaser: runs-on: ubuntu-latest steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v3 - - - name: Unshallow + + - name: Unshallow run: git fetch --prune --unshallow - - - name: Set up Go + + - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.20' - - - name: Import GPG key + go-version: "1.21" + + - name: Import GPG key id: import_gpg uses: crazy-max/ghaction-import-gpg@v5 - env: + with: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.PASSPHRASE }} - - - name: Run GoReleaser + + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v4 with: version: latest