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 - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '>=1.21' go-version-file: "go.mod"
- name: Download Go modules - name: Download Go modules
run: go mod download run: go mod download
+3 -3
View File
@@ -35,13 +35,13 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '>=1.21' go-version-file: "go.mod"
- name: Run GoReleaser - name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6 uses: goreleaser/goreleaser-action@v6
with: with:
distribution: goreleaser distribution: goreleaser
version: latest version: '~> v2'
args: release --rm-dist args: release --clean
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+3 -1
View File
@@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
version: 2
before: before:
hooks: hooks:
- go mod tidy - go mod tidy
@@ -31,6 +33,7 @@ builds:
goos: goos:
- linux - linux
- windows - windows
archives: archives:
- format_overrides: - format_overrides:
- goos: windows - goos: windows
@@ -56,4 +59,3 @@ checksum:
name_template: 'checksums.txt' name_template: 'checksums.txt'
snapshot: snapshot:
name_template: "{{ incpatch .Version }}-next" name_template: "{{ incpatch .Version }}-next"