Skip to content

Commit 645cfc5

Browse files
authored
Merge pull request #53 from jr-frazier/master
updated to use goreleaser
2 parents 4cc2fc1 + 39f569d commit 645cfc5

3 files changed

Lines changed: 60 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ jobs:
2222
runs-on: ubuntu-latest
2323
if: ${{ github.ref == 'refs/heads/master' }}
2424
steps:
25-
- uses: actions/setup-node@v1
25+
- name: Checkout
26+
uses: actions/checkout@v2
27+
with:
28+
fetch-depth: 0
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v2
2631
with:
27-
node-version: 14.x
28-
registry-url: https://npm.pkg.github.com/
32+
node-version: 'lts/*'
2933
- uses: actions/checkout@v1
3034
- name: install
3135
run: |

.goreleaser.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
builds:
2+
- binary: perfops
3+
goos:
4+
- darwin
5+
- linux
6+
goarch:
7+
- amd64
8+
- arm64
9+
env:
10+
- CGO_ENABLED=0
11+
flags:
12+
- -mod=vendor
13+
14+
release:
15+
prerelease: auto
16+
17+
universal_binaries:
18+
- replace: true
19+
20+
brews:
21+
-
22+
name: perfops
23+
homepage: https://github.com/ProspectOne/perfops-cli
24+
tap:
25+
owner: ProspectOne
26+
name: homebrew-perfops
27+
commit_author:
28+
name: jrFrazier
29+
email: jfrazier@tiggee.com
30+
archives:
31+
- replacements:
32+
darwin: Darwin
33+
linux: Linux
34+
windows: Windows
35+
386: i386
36+
amd64: x86_64
37+
checksum:
38+
name_template: 'checksums.txt'
39+
snapshot:
40+
name_template: "{{ incpatch .Version }}-next"
41+
changelog:
42+
sort: asc
43+
filters:
44+
exclude:
45+
- '^docs:'
46+
- '^test:'
47+
nfpms:
48+
- maintainer: "JR Frazier"
49+
formats:
50+
- deb
51+
- rpm
52+
- apk

.releaserc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"@semantic-release/release-notes-generator",
66
"@semantic-release/github",
77
["@semantic-release/exec", {
8-
"publishCmd": "go get -v -d ./ && bash hack/build-all.sh && bash hack/build-pkgs.sh"
8+
"publishCmd": "echo \"${nextRelease.notes}\" > /tmp/release-notes.md && goreleaser release --release-notes /tmp/release-notes.md --rm-dist"
99
}]
1010
]
1111
}

0 commit comments

Comments
 (0)