Update ci.yml
This commit is contained in:
parent
f3a9a7ee8a
commit
b50288555b
|
@ -44,7 +44,7 @@ jobs:
|
|||
env:
|
||||
GOOS: ${{ matrix.goos }}
|
||||
GOARCH: ${{ matrix.goarch }}
|
||||
IS_PR: ${{ !!secrets.head_ref }}
|
||||
IS_PR: ${{ !!github.head_ref }}
|
||||
CGO_ENABLED: 0
|
||||
run: |
|
||||
if [ $GOOS = "windows" ]; then export BINARY_SUFFIX="$BINARY_SUFFIX.exe"; fi
|
||||
|
@ -55,7 +55,7 @@ jobs:
|
|||
go build -o "output/$BINARY_NAME" -trimpath -ldflags "$LD_FLAGS" ./
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
if: ${{ !secrets.head_ref }}
|
||||
if: ${{ !github.head_ref }}
|
||||
with:
|
||||
name: ${{ matrix.goos }}_${{ matrix.goarch }}
|
||||
path: output/
|
||||
|
|
Loading…
Reference in New Issue