From 0055928b31593fb89654c57e7dc0359a6aea42a1 Mon Sep 17 00:00:00 2001 From: fallion Date: Sun, 7 Mar 2021 23:43:50 +0100 Subject: [PATCH] chore(ci): use goreleaser github action --- .github/workflows/release.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a290738..fb71ecb6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,15 +12,20 @@ jobs: - name: Check out code uses: actions/checkout@v2 - - name: Release Notary Action - uses: docker://outillage/release-notary:0.9.2 + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: goreleaser - uses: docker://goreleaser/goreleaser:0.159.0 + - name: Release Notary Action + uses: docker://outillage/release-notary:0.9.2 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - args: release - if: success() + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file