Skip to content

Commit

Permalink
👷 goreleaser config update
Browse files Browse the repository at this point in the history
  • Loading branch information
naiba committed Nov 3, 2021
1 parent e12d87f commit e80f12e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 10 additions & 13 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ before:
hooks:
- go mod tidy -v
builds:
- id: nezha-agent
env:
- env:
- CGO_ENABLED=0
goos:
- linux
Expand All @@ -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
- go mod tidy

0 comments on commit e80f12e

Please sign in to comment.