From e277746f6f210a18c58408cf739b7ff8ff976d21 Mon Sep 17 00:00:00 2001 From: Rafael Barash Date: Thu, 5 Sep 2024 12:08:47 -0600 Subject: [PATCH] update goreleaser github action based on github marketplace docs. --- .github/workflows/release.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b8b8596..159cd0d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,15 +8,19 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Unshallow - run: git fetch --prune --unshallow - - uses: actions/setup-go@v1 + - name: Checkout + uses: actions/checkout@v4 with: - go-version: 1.21.x - - uses: goreleaser/goreleaser-action@v2 + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v5 + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 with: - version: latest - args: release --rm-dist + # either 'goreleaser' (default) or 'goreleaser-pro' + distribution: goreleaser + # 'latest', 'nightly', or a semver + version: '~> v2' + args: release --clean env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }