Skip to content

Commit

Permalink
fix version not getting embedded in releases correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
capnspacehook authored Jul 13, 2022
1 parent 68a9906 commit 73be4cc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,15 @@ jobs:

- name: Get version
run: |
GIT_TAG="$(git tag --sort=-version:refname | head -n 1)"
echo $GIT_TAG
echo "GIT_TAG=$(git tag --sort=-version:refname | head -n 1)" >> $GITHUB_ENV
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: linux
goarch: amd64
binary_name: egress-eddie
pre_command: "export CGO_ENABLED=0"
build_flags: "-buildmode=pie -trimpath"
ldflags: -w -s -X main.version="${{ env.GIT_TAG }}"
pre_command: export CGO_ENABLED=0
build_flags: -buildmode=pie -trimpath
ldflags: -w -s -X main.version=${{ env.GIT_TAG }}
sha256sum: true

0 comments on commit 73be4cc

Please sign in to comment.