Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iansinnott committed Aug 20, 2023
1 parent 81b59c2 commit 73c861c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ jobs:
- name: Download modules
run: go mod download

- name: Go build
run: |
CGO_ENABLED=0 GOOS=${{ matrix.GOOS }} GOARCH=${{ matrix.GOARCH}} go build -ldflags "-X github.com/iansinnott/browser-gopher/cmd.Version=$(VERSION)" -o $(OUTDIR)/$(NAME)-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(echo $(git describe --tags --always))

- name: Go build
run: |
CGO_ENABLED=0 GOOS=${{ matrix.GOOS }} GOARCH=${{ matrix.GOARCH}} go build -ldflags "-X github.com/iansinnott/browser-gopher/cmd.Version=${{ env.VERSION }}" -o ./dist/browser-gopher-${{ matrix.GOOS }}-${{ matrix.GOARCH }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit 73c861c

Please sign in to comment.