diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b5881d2b..42260f6b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -21,10 +21,12 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Setup .NET 6 + - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.x' + dotnet-version: | + 6.0.x + 8.0.x - name: Run docs generation run: ./docs/generate.ps1 diff --git a/docs/generate.ps1 b/docs/generate.ps1 index 1909bb7d..8d13fd63 100755 --- a/docs/generate.ps1 +++ b/docs/generate.ps1 @@ -37,7 +37,7 @@ try { if (-not (Test-Path $docfx)) { mkdir -p $docfxRoot -ErrorAction Ignore | Out-Null $temp = (New-TemporaryFile).FullName + ".zip" - Invoke-WebRequest "https://www.nuget.org/api/v2/package/docfx.console/$docfxVersion" -O $temp + Invoke-WebRequest "https://www.nuget.org/api/v2/package/docfx.console/$docfxVersion" -OutFile $temp Expand-Archive $temp -DestinationPath $docfxRoot Remove-Item $temp if ($Install) {