diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 39dd073..47eec83 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,14 +9,14 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 with: - version: v1.29 + version: v1.54 test: name: Test @@ -26,10 +26,10 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: 1.16 + go-version: 1.21 - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -48,10 +48,10 @@ jobs: - name: Install Go uses: actions/setup-go@v2 with: - go-version: 1.16 + go-version: 1.21 - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -63,12 +63,16 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Snapshot - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v5 with: + distribution: goreleaser + version: latest args: release --snapshot - name: Release if: startsWith(github.ref, 'refs/tags/') - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v5 with: + distribution: goreleaser + version: latest args: release --rm-dist