Fix build.yml git checkout conflict

Update build script to handle errors and add files to git.
This commit is contained in:
uNetworkingAB
2025-10-21 07:14:42 +02:00
committed by GitHub
parent cf5d8ba96b
commit 9b3d3ebe83

View File

@@ -34,13 +34,14 @@ jobs:
git clone --recursive https://github.com/uNetworking/uWebSockets.js.git
cd uWebSockets.js
if [ "${{ matrix.os }}" == "windows-latest" ]; then
nmake
nmake || true
else
make
fi
cp dist/*.node . || true
cp dist/*.js . || true
git checkout master docs/index.d.ts && mv docs/index.d.ts . || true
git add *.node *.js index.d.ts || true
git fetch origin binaries:binaries
git checkout binaries
git status