Skip to content

Commit

Permalink
print version
Browse files Browse the repository at this point in the history
  • Loading branch information
sw360cab committed Jul 1, 2024
1 parent 2de38de commit 5508550
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
13 changes: 7 additions & 6 deletions .github/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version: 2
before:
hooks:
- go mod tidy
- go generate ./...

builds:
- main: ./cmd
Expand All @@ -12,14 +13,14 @@ builds:
- CGO_ENABLED=0
goos:
- linux
- darwin
# - darwin
goarch:
- amd64
- arm64
- arm
goarm:
- 6
- 7
# - arm64
# - arm
# goarm:
# - 6
# - 7

gomod:
proxy: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --draft --skip validate --skip publish --clean --config .github/goreleaser.yaml --verbose
version: '~> v2'
args: release --version
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ build/*
*.json

# gorelease local Leftovers
dist/*
dist/*
dist/

0 comments on commit 5508550

Please sign in to comment.