mirror of https://github.com/Hilbis/Hilbish
ci: fix artifact upload for windows
parent
284248fc08
commit
b61a36d675
|
@ -27,9 +27,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: '1.17.7'
|
go-version: '1.17.7'
|
||||||
- name: Build
|
- name: Build
|
||||||
run: GOOS=${{ matrix.goos}} GOARCH=${{ matrix.goarch }} go build
|
run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
|
if: matrix.goos == 'windows'
|
||||||
|
with:
|
||||||
|
name: hilbish-${{ matrix.goos }}-${{ matrix.goarch }}
|
||||||
|
path: hilbish.exe
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
if: matrix.goos != 'windows'
|
||||||
with:
|
with:
|
||||||
name: hilbish-${{ matrix.goos }}-${{ matrix.goarch }}
|
name: hilbish-${{ matrix.goos }}-${{ matrix.goarch }}
|
||||||
path: hilbish
|
path: hilbish
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue