From e80f12e210bfb29e907e3b4c82a69d9ee782ca04 Mon Sep 17 00:00:00 2001 From: naiba Date: Wed, 3 Nov 2021 21:40:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20goreleaser=20config=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dashboard.yml | 5 +++-- .github/workflows/test.yml | 6 ++++++ .goreleaser.yml | 23 ++++++++++------------- 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/.github/workflows/dashboard.yml b/.github/workflows/dashboard.yml index 7bd138e571..688a984492 100644 --- a/.github/workflows/dashboard.yml +++ b/.github/workflows/dashboard.yml @@ -4,11 +4,12 @@ on: workflow_run: workflows: ["Run Tests"] branches: [master] - types: + types: - completed jobs: - deploy: + on-success: + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@master diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b4b3b209cf..144af184ad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,12 @@ on: push: branches: - master + paths-ignore: + - ".github/workflows/agent.yml" + - ".github/workflows/test-on-pr.yml" + - "README.md" + - ".goreleaser.yml" + jobs: tests: runs-on: ubuntu-latest diff --git a/.goreleaser.yml b/.goreleaser.yml index af53a52624..dedcc635c9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -2,8 +2,7 @@ before: hooks: - go mod tidy -v builds: - - id: nezha-agent - env: + - env: - CGO_ENABLED=0 goos: - linux @@ -26,27 +25,25 @@ builds: main: ./cmd/agent binary: nezha-agent universal_binaries: - - id: nezha-agent - name_template: "nezha-agent" + - name_template: "nezha-agent" replace: true checksum: name_template: "checksums.txt" snapshot: - name_template: "{{.ProjectName}}" + name_template: "nezha-agent" archives: - - name_template: "nezha-agent" + - name_template: "{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}" + allow_different_binary_count: true files: - - README.md - - LICENSE - - completions/* + - none* changelog: sort: asc use: github filters: exclude: - - '^docs:' - - '^test:' - - '^chore' + - "^docs:" + - "^test:" + - "^chore" - Merge pull request - Merge branch - - go mod tidy \ No newline at end of file + - go mod tidy