修改upload版本
All checks were successful
CI Cross-Compile / build (amd64, darwin) (push) Successful in 34s
CI Cross-Compile / build (amd64, linux) (push) Successful in 23s
CI Cross-Compile / build (amd64, windows) (push) Successful in 23s

This commit is contained in:
小贺
2025-10-19 18:59:32 +08:00
parent de479301a7
commit c1c19c09a6
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ jobs:
echo "Built ${OUT}" echo "Built ${OUT}"
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v3
with: with:
name: app-${{ matrix.goos }}-${{ matrix.goarch }} name: app-${{ matrix.goos }}-${{ matrix.goarch }}
path: dist/${{ matrix.goos }}-${{ matrix.goarch }}/* path: dist/${{ matrix.goos }}-${{ matrix.goarch }}/*

View File

@@ -38,7 +38,7 @@ jobs:
if [ "${GOOS}" = "windows" ]; then OUT="${OUT}.exe"; fi if [ "${GOOS}" = "windows" ]; then OUT="${OUT}.exe"; fi
go build -trimpath -ldflags="-s -w" -o "${OUT}" ./ go build -trimpath -ldflags="-s -w" -o "${OUT}" ./
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v3
with: with:
name: yourapp-${{ github.ref_name }}-${{ matrix.goos }}-${{ matrix.goarch }} name: yourapp-${{ github.ref_name }}-${{ matrix.goos }}-${{ matrix.goarch }}
path: dist/${{ matrix.goos }}-${{ matrix.goarch }}/* path: dist/${{ matrix.goos }}-${{ matrix.goarch }}/*