mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 02:32:50 +08:00
fix docfx 部署无效
This commit is contained in:
parent
b6ae46e911
commit
7af0707f7a
28
.github/workflows/docfx.yml
vendored
28
.github/workflows/docfx.yml
vendored
@ -3,48 +3,30 @@ name: .NET Core Deploy Docfx
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
pull_request:
|
|
||||||
branches: [master]
|
|
||||||
|
|
||||||
jobs:
|
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:
|
generate-docs:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
needs: build
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Setup .NET Core
|
- name: Setup .NET Core
|
||||||
uses: actions/setup-dotnet@v1
|
uses: actions/setup-dotnet@v1
|
||||||
with:
|
with:
|
||||||
dotnet-version: 5.0.202
|
dotnet-version: 5.0.x
|
||||||
- name: Remove Examples
|
- name: Remove Examples
|
||||||
run: dotnet sln FreeSql.sln remove (ls -r Examples/**/*.csproj)
|
run: dotnet sln FreeSql.sln remove (ls -r Examples/**/*.csproj)
|
||||||
- name: Remove FreeSql.Tests
|
- name: Remove FreeSql.Tests
|
||||||
run: dotnet sln FreeSql.sln remove (ls -r FreeSql.Tests/**/*.csproj)
|
run: dotnet sln FreeSql.sln remove (ls -r FreeSql.Tests/**/*.csproj)
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
- name: Build solution
|
||||||
|
run: dotnet build --configuration Release --no-restore
|
||||||
- name: Setup DocFX
|
- name: Setup DocFX
|
||||||
uses: crazy-max/ghaction-chocolatey@v1
|
uses: crazy-max/ghaction-chocolatey@v1
|
||||||
with:
|
with:
|
||||||
args: install docfx --version 2.56.7
|
args: install docfx
|
||||||
- name: DocFX Build
|
- name: DocFX Build
|
||||||
working-directory: docs
|
working-directory: docs
|
||||||
run: docfx docfx.json
|
run: docfx docfx.json
|
||||||
|
Loading…
x
Reference in New Issue
Block a user