From 5041bc6ea7c6abcea500105a96f503c0e713a1d0 Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Sat, 16 Mar 2024 21:40:45 -0700 Subject: [PATCH] fix: update doc generation script --- .github/workflows/docs.yml | 6 ++++-- docs/generate.ps1 | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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) {