Update ci.yml

This commit is contained in:
序列号 2023-03-19 18:36:59 +08:00 committed by GitHub
parent f3a9a7ee8a
commit b50288555b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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/