mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
fix docfx 部署无效
This commit is contained in:
parent
b6ae46e911
commit
7af0707f7a
26
.github/workflows/docfx.yml
vendored
26
.github/workflows/docfx.yml
vendored
@ -3,30 +3,10 @@ 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
|
||||
@ -34,17 +14,19 @@ jobs:
|
||||
- name: Setup .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 5.0.202
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user