From 7206d394176626e483dd97ac780033ce1c1e4d30 Mon Sep 17 00:00:00 2001 From: IGeekFan Date: Sat, 10 Apr 2021 21:56:53 +0800 Subject: [PATCH] Update docfx.yml --- .github/workflows/docfx.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docfx.yml b/.github/workflows/docfx.yml index d22110a4..8cca960d 100644 --- a/.github/workflows/docfx.yml +++ b/.github/workflows/docfx.yml @@ -16,9 +16,9 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.101 + dotnet-version: 5.0.202 - name: Exclude example projects - run: dotnet sln FreeSql.sln remove Examples/**/*.csproj + run: dotnet sln FreeSql.sln remove Examples/**/*.csproj FreeSql.Tests/**/*.csproj - name: Install dependencies run: dotnet restore - name: Build solution @@ -34,9 +34,13 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 3.1.101 + dotnet-version: 5.0.202 + - name: Remove Examples + run: dotnet sln FreeSql.sln remove (ls -r Examples/**/*.csproj) + - name: Remove FreeSql.Tests + run: dotnet sln FreeSql.sln remove (ls -r FreeSql.Tests/**/*.csproj) - name: Install dependencies - run: dotnet sln FreeSql.sln remove (ls -r Examples/**/*.csproj);dotnet restore + run: dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org --configfile $env:APPDATA\NuGet\NuGet.Config && dotnet restore - name: Setup DocFX uses: crazy-max/ghaction-chocolatey@v1 with: