Skip to content

Commit

Permalink
feat: add version updater bot
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeis committed Sep 29, 2024
1 parent f774c95 commit 7d6cb56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ jobs:
GOOS: ${{ env.OS }}
GOARCH: ${{ matrix.arch }}
run: |
go build -ldflags "-X version.version=$(git describe --tags --always)" -o fabric-${OS}-${{ matrix.arch }} .
go build -ldflags "-X main.version=$(git describe --tags --abbrev=0)" -o fabric-${OS}-${{ matrix.arch }} .
- name: Build binary on Windows
if: matrix.os == 'windows-latest'
env:
GOOS: windows
GOARCH: ${{ matrix.arch }}
run: |
go build -ldflags "-X version.version=$(git describe --tags --always)" -o fabric-windows-${{ matrix.arch }}.exe .
go build -ldflags "-X main.version=$(git describe --tags --abbrev=0)" -o fabric-windows-${{ matrix.arch }}.exe .
- name: Upload build artifact
if: matrix.os != 'windows-latest'
Expand Down

0 comments on commit 7d6cb56

Please sign in to comment.