From 2050142ee0094909a68e003c9c86a83d17941dcd Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Mon, 18 Nov 2024 15:38:19 -0800 Subject: [PATCH] Update publish-csharp-apidocs.yml --- .github/workflows/publish-csharp-apidocs.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-csharp-apidocs.yml b/.github/workflows/publish-csharp-apidocs.yml index c687ddfb6f395..b2d24cbb14ecf 100644 --- a/.github/workflows/publish-csharp-apidocs.yml +++ b/.github/workflows/publish-csharp-apidocs.yml @@ -55,8 +55,9 @@ jobs: shell: pwsh run: | 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 + $OutputDirectory="_site/docs/api/csharp" + if (Test-Path $OutputDirectory) { Remove-Item -Recurse -Force $OutputDirectory } + Move-Item -Path csharp\ApiDocs\csharp -Destination $OutputDirectory - name: Upload docs artifact uses: actions/upload-artifact@v4 with: