diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4b00f86..1c1f8ae 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -13,15 +13,15 @@ jobs: runs-on: ubuntu-latest steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v4 + - name: Set up Go 1.x - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: - go-version: ^1.17 + go-version: ^1.23 id: go - - name: Check out code into the Go module directory - uses: actions/checkout@v2 - - name: Get dependencies run: | go get -v -t -d ./... diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 40af116..6c87e44 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,17 +10,17 @@ jobs: 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@v2 + uses: actions/setup-go@v5 with: - go-version: 1.17 + go-version: '1.23' - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v6 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index 993f60d..553defa 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,7 @@ -# This is an example goreleaser.yaml file with some sane defaults. -# Make sure to check the documentation at http://goreleaser.com +# GoReleaser configuration +# Documentation: https://goreleaser.com +version: 2 + before: hooks: - make @@ -32,7 +34,7 @@ archives: format: zip checksum: - name_template: '{{ .ProjectName }}_checksums.txt' + name_template: 'checksums.txt' snapshot: name_template: "{{ .Tag }}-next"