forked from CosmosOS/Cosmos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request CosmosOS#2216 from CosmosOS/docfx-action
Update build-docs.yml
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,18 +6,21 @@ on: | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Setup dotnet | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 6.0.x | ||
- name: Build docs | ||
uses: nikeee/[email protected] | ||
with: | ||
args: ./Docs/docfx.json | ||
- name: Install DocFX | ||
shell: pwsh | ||
run: choco install docfx | ||
- name: Build Docs | ||
shell: pwsh | ||
run: docfx ./Docs/docfx.json | ||
continue-on-error: false | ||
- name: Publish to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
|