Skip to content

Commit

Permalink
Move tag to ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Staal committed Feb 6, 2024
1 parent a40bfed commit 9cd7060
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
with:
fetch-depth: '0'

- name: Get latest tag
run: LATEST_TAG=$(git describe --tags)

- name: Build release
uses: wangyoucao577/[email protected]
with:
Expand All @@ -32,4 +29,4 @@ jobs:
binary_name: "james"
extra_files: LICENSE README.md
sha256sum: true
ldflags: "-X main.Build=$LATEST_TAG"
ldflags: "-X main.Build=$(git describe --tags)"

0 comments on commit 9cd7060

Please sign in to comment.