diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7844088..85ff7cd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,24 +4,24 @@ on: pull_request: push: tags: - - "*" + - "v*" jobs: goreleaser: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: "1.22" - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: - version: latest + version: "~> v2" args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 2bb7412..c07ab45 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,2 +1,4 @@ +version: 2 + builds: - skip: true