Skip to content

Commit

Permalink
[build] get the release tag from git
Browse files Browse the repository at this point in the history
  • Loading branch information
draxil committed Aug 2, 2022
1 parent e7dc932 commit 5290616
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/releasebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ jobs:
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "."
binary_name: "json2nd"
extra_files: LICENSE Readme.org doc/
ldflags: -X main.version=${{ env.RELEASE_TAG }}
- uses: actions/checkout@v3
# got to be a better way?
- run: echo "RELEASE_TAG="`git describe --tags` >> $GITHUB_ENV
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "."
binary_name: "json2nd"
extra_files: LICENSE Readme.org doc/
ldflags: -X main.version=${{ env.RELEASE_TAG }}

0 comments on commit 5290616

Please sign in to comment.