Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nocodeleaks committed Jun 7, 2024
1 parent b64658a commit 0bc1a14
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ jobs:
with:
go-version: ${{env.GOVERSION}}

- name: Set up binary name
env:
- BINARY_NAME: ${{github.repository}}-${{matrix.go-os}}-${{matrix.go-arch}}${{matrix.suffix}}
- BINARYNAME: ${{github.repository}}-${{matrix.go-os}}-${{matrix.go-arch}}${{matrix.suffix}}

- name: Install goimports
run: |
Expand All @@ -49,7 +48,7 @@ jobs:
- name: Build
working-directory: ./src
run: ${{ matrix.build-env }} GOOS=${{ matrix.go-os }} GOARCH=${{ matrix.go-arch }} go build -o "$BINARY_NAME" -tags="${{ matrix.build-tags }}" -v ./...
run: ${{ matrix.build-env }} GOOS=${{ matrix.go-os }} GOARCH=${{ matrix.go-arch }} go build -o "${{env.BINARYNAME}}" -tags="${{ matrix.build-tags }}" -v ./...

- name: Test
working-directory: ./src
Expand All @@ -67,5 +66,5 @@ jobs:
uses: softprops/action-gh-release@v2
with:
body_path: ".github/RELEASE-TEMPLATE.md"
files: ./src/${{env.BINARY_NAME}}
files: ./src/${{env.BINARYNAME}}
tag_name: latest

0 comments on commit 0bc1a14

Please sign in to comment.