Skip to content

Commit d404b6b

Browse files
committed
feat: GitHub Action added for deployment to GitHub Pages
1 parent f1758b3 commit d404b6b

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# More GitHub Actions for Azure: https://github.com/Azure/actions
2+
3+
name: Build Stride Docs for GitHub Staging
4+
5+
on:
6+
workflow_dispatch:
7+
8+
jobs:
9+
publish-docs:
10+
runs-on: windows-2022
11+
12+
steps:
13+
- name: Dotnet Setup
14+
uses: actions/setup-dotnet@v3
15+
with:
16+
dotnet-version: 8.x
17+
18+
- name: Checkout Stride Docs
19+
uses: actions/checkout@v3
20+
with:
21+
path: stride-docs
22+
lfs: true
23+
24+
- name: Checkout Stride (note the LFS)
25+
uses: actions/checkout@v3
26+
with:
27+
repository: stride3d/stride
28+
token: ${{ secrets.GITHUB_TOKEN }}
29+
path: stride
30+
lfs: true
31+
32+
- name: Install DocFX
33+
run: dotnet tool update -g docfx --version 2.74.0
34+
35+
- name: Build documentation
36+
run: ./build-all.bat
37+
working-directory: stride-docs
38+
39+
- name: Deploy
40+
uses: peaceiris/[email protected]
41+
with:
42+
github_token: ${{ secrets.GITHUB_TOKEN }}
43+
publish_dir: stride-docs/_site
44+
publish_branch: gh-pages

Stride.Docs.sln

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stride.Docs", "Stride.Docs.
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{85103FBF-C9A6-4722-B36B-89A58F55C1DF}"
99
ProjectSection(SolutionItems) = preProject
10+
.github\workflows\stride-docs-github.yml = .github\workflows\stride-docs-github.yml
1011
.github\workflows\stride-docs-release-azure.yml = .github\workflows\stride-docs-release-azure.yml
1112
.github\workflows\stride-docs-release-fast-track-azure.yml = .github\workflows\stride-docs-release-fast-track-azure.yml
1213
.github\workflows\stride-docs-staging-azure.yml = .github\workflows\stride-docs-staging-azure.yml

0 commit comments

Comments
 (0)