Skip to content

Commit

Permalink
multiple goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
altitude committed Jul 19, 2021
1 parent 1a97afd commit 1010cbb
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/.goreleaser.darwin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
before:
hooks:
- go build -o numary
builds:
- env:
- CGO_ENABLED=1
goos:
- darwin
goarch:
- amd64
binary: numary
archives:
- replacements:
darwin: macos
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
1 change: 0 additions & 1 deletion .goreleaser.yml → .github/.goreleaser.linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ builds:
- CGO_ENABLED=1
goos:
- linux
- darwin
goarch:
- amd64
binary: numary
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,16 @@ jobs:
run: CGO_ENABLED=1 go get
- name: fetch numary control
run: make fetch-control
- name: prepare goreleaser
run: cp .github/.goreleaser.${{matrix.GOOS}}.yml .goreleaser.yml
- name: Run GoReleaser
env:
GOOS: ${{matrix.GOOS}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --parallelism 2 --rm-dist --single-target
args: release --parallelism 2 --rm-dist

- if: matrix.os == 'ubuntu-latest'
name: Configure AWS credentials
Expand Down

0 comments on commit 1010cbb

Please sign in to comment.