From 08ac2948ac718a7d60fa92912701ed97fe266c9c Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Mon, 18 Nov 2024 14:31:51 -0800 Subject: [PATCH] Update publish-csharp-apidocs.yml --- .github/workflows/publish-csharp-apidocs.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-csharp-apidocs.yml b/.github/workflows/publish-csharp-apidocs.yml index a50cedf5d0c97..b6148c25b9e93 100644 --- a/.github/workflows/publish-csharp-apidocs.yml +++ b/.github/workflows/publish-csharp-apidocs.yml @@ -20,7 +20,7 @@ permissions: jobs: build: - runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"] + runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-vs2022-mms"] env: DOCFXVERSION: 2.62.2 steps: @@ -32,7 +32,6 @@ jobs: # docfx doesn't seem to be able to do that properly resulting in build errors - name: Restore dependencies run: | - set -e -x dotnet restore csharp/ApiDocs/ApiDocs.csproj dotnet restore /p:IncludeMobileTargets=false csharp/src/Microsoft.ML.OnnxRuntime/Microsoft.ML.OnnxRuntime.csproj - name: docfx metadata @@ -47,10 +46,11 @@ jobs: - name: Log source commit run: git rev-parse --short HEAD > csharp/ApiDocs/csharp/source-version.txt - name: Move C# docs into site + shell: pwsh run: | - mkdir -p _site/docs/api - rm -rf _site/docs/api/csharp - mv csharp/ApiDocs/csharp _site/docs/api/csharp + New-Item -Path _site/docs/api -Force -ItemType "Directory" | Out-Null + Remove-Item -Recurse -Force _site/docs/api/csharp + Move-Item -Path csharp\ApiDocs\csharp -Destination _site\docs\api\csharp - name: Upload docs artifact uses: actions/upload-artifact@v4 with: