diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d06cf35..365c528 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,18 +14,17 @@ jobs: uses: actions/checkout@v2 - name: Set up Go - uses: actions/setup-go@v4 # Use the latest version of the setup-go action + uses: actions/setup-go@v4 with: go-version: '1.22' # Set the Go version to 1.22 - name: Install dependencies run: go mod tidy - - name: Install GoReleaser - run: | - curl -sSL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh - - name: Run GoReleaser - run: goreleaser release --clean + uses: goreleaser/goreleaser-action@v4 + with: + version: latest + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Use the automatically provided GitHub token