Feature(custom): optimize auto-upload pipeline

This commit is contained in:
Kuingsmile
2026-01-15 20:49:57 +08:00
parent 842a7a89e6
commit db8dd19eae
5 changed files with 38 additions and 27 deletions

View File

@@ -183,10 +183,27 @@ jobs:
fi
echo "Publishing argument: $PUBLISH_ARG"
if [[ "${{ matrix.os }}" == windows* ]]; then
if [[ "${{ matrix.format }}" == "nsis" ]]; then
rm -f ./resources/7za.exe
if [ -f ./resources/7za.exe ]; then
echo "Error: 7za.exe was not removed from resources."
exit 1
fi
fi
yarn run build:win ${{ matrix.format}} --${{ matrix.arch }} --publish $PUBLISH_ARG
elif [[ "${{ matrix.os }}" == macos* ]]; then
rm -f ./resources/7za.exe
if [ -f ./resources/7za.exe ]; then
echo "Error: 7za.exe was not removed from resources."
exit 1
fi
yarn run build:mac ${{ matrix.format}} --${{ matrix.arch }} --publish $PUBLISH_ARG
elif [[ "${{ matrix.os }}" == ubuntu* ]]; then
rm -f ./resources/7za.exe
if [ -f ./resources/7za.exe ]; then
echo "Error: 7za.exe was not removed from resources."
exit 1
fi
yarn run build:linux ${{ matrix.format}} --${{ matrix.arch }} --publish $PUBLISH_ARG
else
echo "Unsupported OS: ${{ matrix.os }}"