Skip to content

Commit

Permalink
fix workflow to build binary with VERSION from git
Browse files Browse the repository at this point in the history
  • Loading branch information
5u6r054 committed Jul 29, 2024
1 parent b4d8632 commit c4fb759
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@ jobs:
with:
go-version: '1.21'

- name: Set Version
run: echo "VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV

- name: Build Binary
run: go build -v -o masa-node ./cmd/masa-node

run: |
echo "Building with version: ${{ env.VERSION }}"
go build -v -ldflags "-X github.com/masa-finance/masa-oracle/pkg/config.Version=${{ env.VERSION }}" -o masa-node ./cmd/masa-node
- id: auth
uses: google-github-actions/auth@v2
with:
Expand Down

0 comments on commit c4fb759

Please sign in to comment.