-
Notifications
You must be signed in to change notification settings - Fork 551
48 lines (46 loc) · 1.18 KB
/
build-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Build Docs
on:
push:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Cosmos
uses: actions/[email protected]
with:
repository: CosmosOS/Cosmos
path: Cosmos
- name: Checkout IL2CPU
uses: actions/[email protected]
with:
repository: CosmosOS/IL2CPU
path: IL2CPU
- name: Checkout XSharp
uses: actions/[email protected]
with:
repository: CosmosOS/XSharp
path: XSharp
- name: Checkout Common
uses: actions/[email protected]
with:
repository: CosmosOS/Common
path: Common
- name: Setup dotnet
uses: actions/[email protected]
with:
dotnet-version: 6.0.x
- name: Install DocFX
shell: pwsh
run: choco install docfx
- name: Build Docs
shell: pwsh
run: docfx ./Cosmos/Docs/docfx.json
continue-on-error: false
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.GH_PAGES }}
external_repository: CosmosOS/cosmosos.github.io
publish_branch: master
publish_dir: ./Cosmos/Docs/_site