From 8bdb56eac02f3add04a3857b45aa45d16fbd1a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=97=E6=88=90=F0=9F=8D=A5?= Date: Wed, 16 Sep 2026 22:27:52 +0800 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 96ebf5d..fe4a8f0 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -10,7 +10,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest steps: - name: Checkout @@ -25,17 +25,17 @@ jobs: run: dotnet restore - name: Build - run: dotnet build --no-restore --configuration Release + run: dotnet build src/VHDPatchFix/VHDPatchFix.csproj --no-restore --configuration Release - name: Test run: dotnet test --no-build --configuration Release --verbosity normal - name: Publish - run: dotnet publish --configuration Release --output ./publish + run: dotnet publish src/VHDPatchFix/VHDPatchFix.csproj --configuration Release --runtime win-x64 --self-contained true --property PublishSingleFile=true --output ./publish - name: Upload artifact uses: actions/upload-artifact@v4 with: - name: VHDPatchFix + name: VHDPatchFix-win-x64 path: ./publish if-no-files-found: error