👷 goreleaser config update
This commit is contained in:
parent
e12d87f2ce
commit
e80f12e210
3
.github/workflows/dashboard.yml
vendored
3
.github/workflows/dashboard.yml
vendored
@ -8,7 +8,8 @@ on:
|
|||||||
- completed
|
- completed
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
on-success:
|
||||||
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@ -4,6 +4,12 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
paths-ignore:
|
||||||
|
- ".github/workflows/agent.yml"
|
||||||
|
- ".github/workflows/test-on-pr.yml"
|
||||||
|
- "README.md"
|
||||||
|
- ".goreleaser.yml"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -2,8 +2,7 @@ before:
|
|||||||
hooks:
|
hooks:
|
||||||
- go mod tidy -v
|
- go mod tidy -v
|
||||||
builds:
|
builds:
|
||||||
- id: nezha-agent
|
- env:
|
||||||
env:
|
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
@ -26,27 +25,25 @@ builds:
|
|||||||
main: ./cmd/agent
|
main: ./cmd/agent
|
||||||
binary: nezha-agent
|
binary: nezha-agent
|
||||||
universal_binaries:
|
universal_binaries:
|
||||||
- id: nezha-agent
|
- name_template: "nezha-agent"
|
||||||
name_template: "nezha-agent"
|
|
||||||
replace: true
|
replace: true
|
||||||
checksum:
|
checksum:
|
||||||
name_template: "checksums.txt"
|
name_template: "checksums.txt"
|
||||||
snapshot:
|
snapshot:
|
||||||
name_template: "{{.ProjectName}}"
|
name_template: "nezha-agent"
|
||||||
archives:
|
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:
|
files:
|
||||||
- README.md
|
- none*
|
||||||
- LICENSE
|
|
||||||
- completions/*
|
|
||||||
changelog:
|
changelog:
|
||||||
sort: asc
|
sort: asc
|
||||||
use: github
|
use: github
|
||||||
filters:
|
filters:
|
||||||
exclude:
|
exclude:
|
||||||
- '^docs:'
|
- "^docs:"
|
||||||
- '^test:'
|
- "^test:"
|
||||||
- '^chore'
|
- "^chore"
|
||||||
- Merge pull request
|
- Merge pull request
|
||||||
- Merge branch
|
- Merge branch
|
||||||
- go mod tidy
|
- go mod tidy
|
Loading…
Reference in New Issue
Block a user