diff --git a/.github/workflows/agent.yml b/.github/workflows/agent.yml index 2174294..3bcf73c 100644 --- a/.github/workflows/agent.yml +++ b/.github/workflows/agent.yml @@ -16,7 +16,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 if: startsWith(github.ref, 'refs/tags/') diff --git a/.github/workflows/dashboard.yml b/.github/workflows/dashboard.yml index 9712acf..4cb2439 100644 --- a/.github/workflows/dashboard.yml +++ b/.github/workflows/dashboard.yml @@ -10,6 +10,7 @@ on: - "README.md" - "cmd/agent/**" - ".github/agent.yaml" + - ".goreleaser.yml" jobs: deploy: diff --git a/.goreleaser.yml b/.goreleaser.yml index 1c1fb16..ebb7f8a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -10,6 +10,8 @@ builds: - windows - darwin main: ./cmd/agent +release: + name_template: "nezha-agent_{{.Os}}_{{.Arch}}" checksum: name_template: "checksums.txt" snapshot: