Skip to content

Commit

Permalink
ci: set goreleaser ldflaps for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Feb 25, 2023
1 parent e02f819 commit 8fcb4bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Expand Up @@ -3,6 +3,7 @@ on:
- pull_request
- push
permissions:
contents: write
packages: write
jobs:
test:
Expand Down Expand Up @@ -142,6 +143,7 @@ jobs:
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GIT_REPO: ${{ steps.docker.outputs.gitRepo }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .goreleaser.yaml
Expand Up @@ -13,6 +13,8 @@ builds:
- linux
- windows
- darwin
ldflags:
- -w -s -X {{ .Env.GIT_REPO }}/cmd.Version={{ .Version }} -X {{ .Env.GIT_REPO }}/cmd.GitCommit={{ .Commit }}
archives:
- replacements:
darwin: Darwin
Expand Down

0 comments on commit 8fcb4bb

Please sign in to comment.