From 7af0707f7a709da631befc32e412fe1c99a21654 Mon Sep 17 00:00:00 2001 From: IGeekFan Date: Mon, 21 Jun 2021 22:38:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=20docfx=20=E9=83=A8=E7=BD=B2=E6=97=A0?= =?UTF-8?q?=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docfx.yml | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/.github/workflows/docfx.yml b/.github/workflows/docfx.yml index 9ecb6663..0ff00767 100644 --- a/.github/workflows/docfx.yml +++ b/.github/workflows/docfx.yml @@ -3,48 +3,30 @@ name: .NET Core Deploy Docfx on: push: branches: [master] - pull_request: - branches: [master] jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 5.0.202 - - name: Exclude example projects - run: dotnet sln FreeSql.sln remove Examples/**/*.csproj FreeSql.Tests/**/*.csproj - - name: Install dependencies - run: dotnet restore - - name: Build solution - run: dotnet build --configuration Release --no-restore - generate-docs: runs-on: windows-latest - needs: build steps: - name: Checkout uses: actions/checkout@v2 - name: Setup .NET Core uses: actions/setup-dotnet@v1 - with: - dotnet-version: 5.0.202 + with: + dotnet-version: 5.0.x - 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 restore + - name: Build solution + run: dotnet build --configuration Release --no-restore - name: Setup DocFX uses: crazy-max/ghaction-chocolatey@v1 with: - args: install docfx --version 2.56.7 + args: install docfx - name: DocFX Build working-directory: docs run: docfx docfx.json