Skip to content

Commit

Permalink
Recreate goreleaser yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
c-bata committed Sep 8, 2023
1 parent fb7e528 commit 91db234
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 23 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '18'
- run: go install golang.org/x/tools/cmd/stringer@latest
- run: |
cd dashboard
npm install
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ dashboard/public/
*.sqlite3
*.db
*.bin

dist/
35 changes: 35 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- main: ./cmd/main.go
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin

archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
23 changes: 0 additions & 23 deletions .goreleaser.yml

This file was deleted.

0 comments on commit 91db234

Please sign in to comment.