forked from stride3d/stride-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.03 KB
/
stride-docs-github.yml
File metadata and controls
44 lines (35 loc) · 1.03 KB
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
# More GitHub Actions for Azure: https://github.com/Azure/actions
name: Build Stride Docs for GitHub Staging
on:
workflow_dispatch:
jobs:
publish-docs:
runs-on: windows-2022
steps:
- name: Dotnet Setup
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Checkout Stride Docs
uses: actions/checkout@v4
with:
path: stride-docs
lfs: true
- name: Checkout Stride (note the LFS)
uses: actions/checkout@v4
with:
repository: stride3d/stride
token: ${{ secrets.GITHUB_TOKEN }}
path: stride
lfs: true
- name: Install DocFX
run: dotnet tool update -g docfx --version 2.75.2
- name: Build documentation
run: ./build-all.bat
working-directory: stride-docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.9.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: stride-docs/_site
publish_branch: gh-pages