From 429dc064bcfc4411335e6e7e4e89a249700e4f59 Mon Sep 17 00:00:00 2001 From: Vladimir Ermakov Date: Thu, 12 Dec 2024 09:45:27 +0100 Subject: [PATCH] ci: fix goreleaser --- .github/workflows/build.yaml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 2 +- go.mod | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 23691ad..263eaca 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -15,7 +15,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: '>=1.23.0' + go-version-file: go.mod - name: Build env: GOOS: ${{ matrix.GOOS }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 82d5c8a..069cfeb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,6 +14,6 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '>=1.23.0' + go-version-file: go.mod - name: Run golangci-lint uses: golangci/golangci-lint-action@v6 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d298db..09e8b3d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,12 +16,12 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '>=1.23.0' + go-version-file: go.mod - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: version: latest - args: release --rm-dist + args: release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} container-image: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 92ae007..5ecb41e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '>=1.23.0' + go-version-file: go.mod id: go - name: Test run: go test -v ./... diff --git a/go.mod b/go.mod index 1315a7a..d80f363 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/vooon/esp-ota-server -go 1.20 +go 1.23 require ( github.com/alecthomas/kong v1.6.0