From 5ffa46b3775f83c8f72b5390ad7e580f7ec02ed1 Mon Sep 17 00:00:00 2001 From: naiba Date: Tue, 9 Nov 2021 10:12:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20=E4=BF=AE=E5=A4=8D=20release=20l?= =?UTF-8?q?og=20=E6=AF=8F=E6=AC=A1=E5=8F=AA=E7=94=9F=E6=88=90=E4=B8=80?= =?UTF-8?q?=E6=9D=A1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/agent.yml | 8 ++++---- .goreleaser.yml | 8 ++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/agent.yml b/.github/workflows/agent.yml index 03e181a..75a9ddb 100644 --- a/.github/workflows/agent.yml +++ b/.github/workflows/agent.yml @@ -10,14 +10,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master + with: + fetch-depth: 0 - uses: actions/setup-go@v2 with: - go-version: '^1.17.2' + go-version: "^1.17.2" - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 - if: startsWith(github.ref, 'refs/tags/') with: + distribution: goreleaser version: latest args: release --rm-dist - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 4dd903d..158570e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -37,3 +37,11 @@ archives: - none* changelog: sort: asc + filters: + exclude: + - "^docs:" + - "^test:" + - "^chore" + - Merge pull request + - Merge branch + - go mod tidy