From ca674107b6a624d3ceee9618134427d7990c29f0 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 13 Nov 2020 16:39:20 +0100 Subject: [PATCH] Update goreleaser/goreleaser-action action to v2 --- .github/workflows/build.yml | 2 +- .github/workflows/release.yml | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5b279d3..5735bdc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,6 +27,6 @@ jobs: key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- - - uses: goreleaser/goreleaser-action@v1 + - uses: goreleaser/goreleaser-action@v2 with: args: release --snapshot --skip-sign diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 52fb218..24ef264 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,11 +25,14 @@ jobs: key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- + - name: Import GPG signing key + uses: crazy-max/ghaction-import-gpg@v1 + env: + GPG_PRIVATE_KEY: ${{ secrets.SIGNING_KEY }} - name: Login to Docker hub run: docker login -u ${{ secrets.DOCKER_HUB_USER }} -p ${{ secrets.DOCKER_HUB_PASSWORD }} - - uses: goreleaser/goreleaser-action@v1 + - uses: goreleaser/goreleaser-action@v2 with: args: release - key: ${{ secrets.SIGNING_KEY }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}