-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix version not getting embedded in releases correctly
- Loading branch information
1 parent
68a9906
commit 73be4cc
Showing
1 changed file
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |