From 05a53f62b5c5c7a0a96387057898a98a6122cab4 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Fri, 24 Feb 2023 15:34:53 -0500 Subject: [PATCH] Update release.yml (#25) --- .github/workflows/release.yml | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9fe6e2e..59d5e4f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,28 +7,20 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - - name: Checkout - uses: actions/checkout@v3 - - - name: Unshallow - run: git fetch --prune --unshallow - - - name: Set up Go - uses: actions/setup-go@v3 + - uses: actions/checkout@v3 + - run: git fetch --prune --unshallow + - uses: actions/setup-go@v3 with: go-version-file: 'go.mod' cache: true - - - name: Import GPG key - id: import_gpg - uses: hashicorp/ghaction-import-gpg@v2.1.0 - env: - GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} - PASSPHRASE: ${{ secrets.PASSPHRASE }} - - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v3.0.0 + + - id: import_gpg + uses: crazy-max/ghaction-import-gpg@v5 + with: + gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} + passphrase: ${{ secrets.PASSPHRASE }} + + - uses: goreleaser/goreleaser-action@v4.2.0 with: version: latest args: release --rm-dist