diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 47cdd4d..38d3bd3 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -75,12 +75,17 @@ jobs: set LIB=%LIB%;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\%MSVC_VERSION%\lib\x64 msbuild external-cheat-base.sln /p:Configuration=Release /p:Platform=x64 /p:WindowsTargetPlatformVersion=10.0.22000.0 /p:IncludePath="C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\%MSVC_VERSION%\include;C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include;C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\um;C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt" /p:LibraryPath="C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\%MSVC_VERSION%\lib\x64;C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22000.0\um\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22000.0\ucrt\x64" + - name: Compress Release Artifacts + if: env.UPDATE_AVAILABLE == 'true' + run: | + powershell Compress-Archive -Path x64/Release/* -DestinationPath x64/Release/Release-Binaries.zip + - name: Upload artifacts if: env.UPDATE_AVAILABLE == 'true' uses: actions/upload-artifact@v3 with: name: Release-Binaries - path: x64/Release/ + path: x64/Release/Release-Binaries.zip - name: Create Release if: env.UPDATE_AVAILABLE == 'true' @@ -101,6 +106,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: x64/Release/ + asset_path: x64/Release/Release-Binaries.zip asset_name: Release-Binaries.zip asset_content_type: application/zip