From 99537b0c32f1873cddcc8e79f13ca2ce089eabf0 Mon Sep 17 00:00:00 2001 From: su chen Date: Thu, 29 Aug 2024 17:24:04 +0800 Subject: [PATCH] udpate release.yaml (#561) * udpate release.yaml * udpate goreleaser.yaml * udpate goreleaser.yaml --- .github/workflows/release.yaml | 2 +- .gitignore | 2 ++ .goreleaser.yaml | 6 +++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 663ae7c6..b16acf91 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,6 +25,6 @@ jobs: uses: goreleaser/goreleaser-action@v6 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 253498f8..eddacd39 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ data/*.yaml !.github/workflows/*.yaml helm/easeprobe/charts/ vendor/ + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml index fc1f1a7f..1fec6a5f 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,5 @@ +version: 2 + before: hooks: # You may remove this if you don't use go modules. @@ -6,11 +8,9 @@ before: - go generate ./... snapshot: - name_template: '{{ .Tag }}' + version_template: '{{ .Tag }}' checksum: name_template: 'checksums.txt' -changelog: - skip: true builds: - id: build