mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-06 20:42:57 +08:00
✨ Feature(custom): optimize auto-upload pipeline
This commit is contained in:
17
.github/workflows/buid_arch.yml
vendored
17
.github/workflows/buid_arch.yml
vendored
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user