Skip to content

Commit

Permalink
Created goreleaser configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-sikachyna committed Nov 8, 2024
1 parent 6ee4710 commit 44f254e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,5 @@ jobs:
distribution: goreleaser
version: '~> v2'
args: release --clean
files:
- config.ini
- queries/*.ini
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.vscode
__debug*
__debug*
dist/
34 changes: 34 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
version: 2

before:
hooks:
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin

archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
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 }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
files:
- config.ini
- queries/*.ini

changelog:
sort: asc

0 comments on commit 44f254e

Please sign in to comment.