Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

Commit

Permalink
fix: update suffix step name
Browse files Browse the repository at this point in the history
  • Loading branch information
menzerath committed Aug 17, 2021
1 parent 0f85ed0 commit bae7cb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: decide build file suffix
- name: add build file suffix
if: ${{ matrix.goos == 'windows' }}
run: echo "suffix=.exe" >> $GITHUB_ENV
run: echo "SUFFIX=.exe" >> $GITHUB_ENV
- name: build project
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: go build -o build/monstercat_${{ matrix.goos }}_${{ matrix.goarch }}${{ env.suffix }} main.go
run: go build -o build/monstercat_${{ matrix.goos }}_${{ matrix.goarch }}${{ env.SUFFIX }} main.go
- name: store binary
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit bae7cb7

Please sign in to comment.