mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 05:52:11 +00:00
Use docfx instead of csproj
This commit is contained in:
parent
1beb3244d0
commit
06150a06c3
1 changed files with 15 additions and 10 deletions
25
.github/workflows/build-docs.yml
vendored
25
.github/workflows/build-docs.yml
vendored
|
|
@ -10,15 +10,20 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- name: Setup dotnet
|
# - name: Setup dotnet
|
||||||
uses: actions/setup-dotnet@v1
|
# uses: actions/setup-dotnet@v1
|
||||||
with:
|
# with:
|
||||||
dotnet-version: 3.1.101
|
# dotnet-version: 3.1.101
|
||||||
|
# - name: Build docs
|
||||||
|
# run: dotnet build ./Docs/Cosmos.Docs.csproj
|
||||||
- name: Build docs
|
- name: Build docs
|
||||||
run: dotnet build ./Docs/Cosmos.Docs.csproj
|
uses: nikeee/docfx-action@v1.0.0
|
||||||
|
with:
|
||||||
|
args: ./Docs/docfx.json
|
||||||
- name: Publish to GitHub Pages
|
- name: Publish to GitHub Pages
|
||||||
uses: maxheld83/ghpages@master
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
env:
|
with:
|
||||||
BUILD_DIR: ./Docs/_site
|
personal_token: ${{ secrets.GH_PAGES }}
|
||||||
GH_PAT: ${{ secrets.GH_PAGES }}
|
external_repository: CosmosOS/cosmosos.github.io
|
||||||
GITHUB_REPOSITORY: CosmosOS/cosmosos.github.io
|
publish_branch: master
|
||||||
|
publish_dir: ./Docs/_site
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue