Generating automatically releases with Goreleaserfix/packr-gorelease v0.1.0
@ -0,0 +1,29 @@ |
|||||
|
name: goreleaser |
||||
|
|
||||
|
on: |
||||
|
push: |
||||
|
tags: |
||||
|
- '*' |
||||
|
|
||||
|
jobs: |
||||
|
goreleaser: |
||||
|
runs-on: ubuntu-latest |
||||
|
steps: |
||||
|
- |
||||
|
name: Checkout |
||||
|
uses: actions/checkout@v2 |
||||
|
with: |
||||
|
fetch-depth: 0 |
||||
|
- |
||||
|
name: Set up Go |
||||
|
uses: actions/setup-go@v2 |
||||
|
with: |
||||
|
go-version: 1.16 |
||||
|
- |
||||
|
name: Run GoReleaser |
||||
|
uses: goreleaser/goreleaser-action@v2 |
||||
|
with: |
||||
|
version: latest |
||||
|
args: release --rm-dist |
||||
|
env: |
||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
@ -0,0 +1,36 @@ |
|||||
|
before: |
||||
|
hooks: |
||||
|
- go mod download |
||||
|
|
||||
|
builds: |
||||
|
- main: ./cli/node/main.go |
||||
|
binary: node |
||||
|
id: node |
||||
|
goos: |
||||
|
- linux |
||||
|
- darwin |
||||
|
- windows |
||||
|
hooks: |
||||
|
pre: make migration-pack |
||||
|
post: make migration-clean |
||||
|
|
||||
|
archives: |
||||
|
- replacements: |
||||
|
darwin: Darwin |
||||
|
linux: Linux |
||||
|
windows: Windows |
||||
|
386: i386 |
||||
|
amd64: x86_64 |
||||
|
|
||||
|
checksum: |
||||
|
name_template: 'checksums.txt' |
||||
|
|
||||
|
snapshot: |
||||
|
name_template: "{{ .Tag }}-next" |
||||
|
|
||||
|
changelog: |
||||
|
sort: asc |
||||
|
filters: |
||||
|
exclude: |
||||
|
- '^docs:' |
||||
|
- '^test:' |