Skip to content

Commit

Permalink
Update publish-csharp-apidocs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn authored Nov 18, 2024
1 parent d470580 commit 08ac294
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish-csharp-apidocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 08ac294

Please sign in to comment.