Update ci.yml

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

View File

@ -56,14 +56,14 @@ jobs:
go build -o "output/$BINARY_NAME" -trimpath -ldflags "$LD_FLAGS" ./ go build -o "output/$BINARY_NAME" -trimpath -ldflags "$LD_FLAGS" ./
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
if: ${{ !HEAD_REF }} if: true
with: with:
name: ${{ matrix.goos }}_${{ matrix.goarch }} name: ${{ matrix.goos }}_${{ matrix.goarch }}
path: output/ path: output/
- name: Upload firmware to release - name: Upload firmware to release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: ${{ HEAD_REF }} if: true
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with: