From 399364af01eba3cbe472a60d14cff24c0330a567 Mon Sep 17 00:00:00 2001 From: Steven Date: Sat, 27 Apr 2024 00:11:03 +0800 Subject: [PATCH] chore: update goreleaser --- ...d-draft-release.yml => build-artifacts.yml} | 2 +- .goreleaser.yaml | 18 ++++-------------- 2 files changed, 5 insertions(+), 15 deletions(-) rename .github/workflows/{build-artifacts-and-draft-release.yml => build-artifacts.yml} (94%) diff --git a/.github/workflows/build-artifacts-and-draft-release.yml b/.github/workflows/build-artifacts.yml similarity index 94% rename from .github/workflows/build-artifacts-and-draft-release.yml rename to .github/workflows/build-artifacts.yml index 0abad2d..087466e 100644 --- a/.github/workflows/build-artifacts-and-draft-release.yml +++ b/.github/workflows/build-artifacts.yml @@ -1,4 +1,4 @@ -name: Build artifacts and draft release +name: Build artifacts on: push: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index d8ea97f..84386ec 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,11 +1,3 @@ -# This is an example .goreleaser.yml file with some sensible defaults. -# Make sure to check the documentation at https://goreleaser.com - -# The lines below are called `modelines`. See `:help modeline` -# Feel free to remove those if you don't want/need to use them. -# yaml-language-server: $schema=https://goreleaser.com/static/schema.json -# vim: set ts=2 sw=2 tw=0 fo=cnqoj - version: 1 before: @@ -26,12 +18,7 @@ archives: - format: tar.gz # this name template makes the OS and Arch compatible with the results of `uname`. name_template: >- - {{ .ProjectName }}_ - {{- title .Os }}_ - {{- if eq .Arch "amd64" }}x86_64 - {{- else if eq .Arch "386" }}i386 - {{- else }}{{ .Arch }}{{ end }} - {{- if .Arm }}v{{ .Arm }}{{ end }} + {{ .ProjectName }}_{{ .Tag }}_{{ .Os }}_{{ .Arch }} changelog: sort: asc @@ -40,6 +27,9 @@ changelog: - "^docs:" - "^test:" +checksum: + disable: true + release: draft: true replace_existing_draft: true