Skip to content

Commit 50496f8

Browse files
authored
Change zip command to use 7z for Windows builds
1 parent 6796446 commit 50496f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/prometheus-alert-workflows.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
# 打包压缩 (Windows 用 zip,其他用 tar.gz)
8989
ASSET_NAME=PrometheusAlert-${{ matrix.goos }}-${{ matrix.goarch }}
9090
if [ "${{ matrix.goos }}" = "windows" ]; then
91-
cd release_package && zip -r ../${ASSET_NAME}.zip * && cd ..
91+
cd release_package && 7z a ../${ASSET_NAME}.zip * && cd ..
9292
else
9393
tar -czvf ${ASSET_NAME}.tar.gz -C release_package .
9494
fi

0 commit comments

Comments
 (0)