diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 802418a..08235db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,6 +108,7 @@ jobs: set SWIG_DIR=${{ github.workspace }}\nupkg\swigwin.3.0.9\tools\swigwin-3.0.9\Lib set SWIG_EXECUTABLE=${{ github.workspace }}\nupkg\swigwin.3.0.9\tools\swigwin-3.0.9\swig.exe set CLIENT_VERSION=%GITHUB_REF_NAME% + set packNuget=true build.bat - uses: ncipollo/release-action@v1 with: diff --git a/build.bat b/build.bat index 73d95db..4fd1e10 100644 --- a/build.bat +++ b/build.bat @@ -69,9 +69,10 @@ if "%HOTROD_PREBUILT_LIB_DIR%" == "" ( if %errorlevel% neq 0 goto fail cmake %* -P ../wix-bundle.cmake - - cpack -G NuGet -R %nuget_package_name% -C RelWithDebInfo - if %errorlevel% neq 0 goto fail + if "%packNuget%"=="true" ( + cpack -G NuGet -R %nuget_package_name% -C RelWithDebInfo + if %errorlevel% neq 0 goto fail + ) ) if %errorlevel% neq 0 goto fail endlocal