File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6767 working-directory : EFCore.PG
6868
6969 - name : Get docfx
70- run : dotnet tool install --version 2.78.4 -g docfx
70+ # We temporarily require a nightly biuld of docfx, supporting Roslyn 5.0.0 which Npgsql requires for its analyzer
71+ # (https://github.com/dotnet/docfx/pull/10859#issuecomment-3794308564)
72+ # run: dotnet tool install --version 2.78.4 -g docfx
73+ run : |
74+ # Get the latest nightly version from GitHub Packages
75+ version=$(gh api /orgs/dotnet/packages/nuget/docfx/versions --jq '.[0].name')
76+ echo "Installing docfx version: $version"
77+
78+ # Download the nupkg
79+ downloadUrl="https://nuget.pkg.github.com/dotnet/download/docfx/${version}/${version}.nupkg"
80+ curl -L -H "Authorization: Bearer $GH_TOKEN" -o "docfx.${version}.nupkg" "$downloadUrl"
81+
82+ # Install from local source
83+ dotnet tool update docfx -g --prerelease --add-source .
84+ env :
85+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7186
7287 - name : Build docs
7388 run : docfx --warningsAsErrors
You can’t perform that action at this time.
0 commit comments