From ad40c8adb4e4acb113d464357811eec0e2eb962f Mon Sep 17 00:00:00 2001 From: luoyunchong Date: Sat, 10 Apr 2021 20:47:33 +0800 Subject: [PATCH] =?UTF-8?q?fix=20Examples=20=E7=BC=96=E8=AF=91=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docfx.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docfx.yml b/.github/workflows/docfx.yml index 7bf08f0e..c725a6a0 100644 --- a/.github/workflows/docfx.yml +++ b/.github/workflows/docfx.yml @@ -7,9 +7,27 @@ on: 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: 3.1.101 + - name: Exclude example projects + run: dotnet sln FreeSql.sln remove (ls -r Examples/**/*.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 @@ -18,7 +36,7 @@ jobs: with: dotnet-version: 3.1.101 - name: Install dependencies - run: dotnet restore + run: dotnet sln FreeSql.sln remove (ls -r Examples/**/*.csproj);dotnet restore - name: Setup DocFX uses: crazy-max/ghaction-chocolatey@v1 with: