修改upload版本
This commit is contained in:
@@ -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 }}/*
|
||||||
|
|||||||
@@ -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 }}/*
|
||||||
|
|||||||
Reference in New Issue
Block a user