diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6983d30..99e36c5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: ">=1.19.0" + go-version: ">=1.20.0" - name: Verify dependencies run: go mod verify diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 624e4b1..9af65ee 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -1,7 +1,8 @@ name: goreleaser + on: - release: - + release: + permissions: contents: write @@ -9,16 +10,13 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 - - - name: Set up Go + - name: Set up Go uses: actions/setup-go@v4 - - - name: Run GoReleaser + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v4 with: # either 'goreleaser' (default) or 'goreleaser-pro' @@ -26,4 +24,4 @@ jobs: version: latest args: release --clean env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml index a65edfe..863d817 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,11 +1,11 @@ # This is an example .goreleaser.yml file with some sensible defaults. # Make sure to check the documentation at https://goreleaser.com -before: - hooks: +#before: + #hooks: # You may remove this if you don't use go modules. - - go mod tidy + #- go mod tidy # you may remove this if you don't need go generate - - go generate ./... + #- go generate ./... builds: - env: - CGO_ENABLED=0