Update release workflow (#2795)

* Update release workflow

* rename
This commit is contained in:
David Zhao
2024-06-15 19:55:16 -07:00
committed by GitHub
parent ecfc42c3f9
commit 88a340202a
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '>=1.21'
go-version-file: "go.mod"
- name: Download Go modules
run: go mod download
+3 -3
View File
@@ -35,13 +35,13 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '>=1.21'
go-version-file: "go.mod"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --rm-dist
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+3 -1
View File
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
version: 2
before:
hooks:
- go mod tidy
@@ -31,6 +33,7 @@ builds:
goos:
- linux
- windows
archives:
- format_overrides:
- goos: windows
@@ -56,4 +59,3 @@ checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"