Skip to content

Commit 1ed4321

Browse files
committed
Integrate DocFX auto construction.
1 parent 6f1cb80 commit 1ed4321

File tree

2 files changed

+53
-19
lines changed

2 files changed

+53
-19
lines changed

.github/workflows/main.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,37 @@ jobs:
8282
with:
8383
name: Build-Windows
8484
path: build/StandaloneWindows64
85+
86+
docs:
87+
name: Generate and Deploy Documentation
88+
runs-on: ubuntu-latest
89+
# needs: [test, build] # 确保测试和构建先完成
90+
steps:
91+
- name: Checkout repository
92+
uses: actions/checkout@v4 # 使用最新版本
93+
with:
94+
lfs: true
95+
fetch-depth: 0
96+
97+
- name: Setup .NET
98+
uses: actions/setup-dotnet@v3
99+
with:
100+
dotnet-version: 7.x
101+
102+
- name: Install DocFX
103+
run: dotnet tool update -g docfx
104+
105+
- name: Build Documentation
106+
working-directory: team_project # 进入项目目录
107+
run: |
108+
docfx build Documentation/docfx.json --force
109+
110+
- name: Upload GitHub Pages artifact
111+
uses: actions/upload-pages-artifact@v1
112+
with:
113+
path: team_project/_site # 匹配DocFX输出目录
114+
115+
- name: Deploy to GitHub Pages
116+
uses: actions/deploy-pages@v2
117+
with:
118+
token: ${{ secrets.GITHUB_TOKEN }}

team_project/Packages/packages-lock.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,28 @@
77
"dependencies": {
88
"com.unity.modules.ai": "1.0.0"
99
},
10-
"url": "https://packages.unity.cn"
10+
"url": "https://packages.unity.com"
1111
},
1212
"com.unity.collab-proxy": {
1313
"version": "2.7.1",
1414
"depth": 0,
1515
"source": "registry",
1616
"dependencies": {},
17-
"url": "https://packages.unity.cn"
17+
"url": "https://packages.unity.com"
1818
},
1919
"com.unity.editorcoroutines": {
2020
"version": "1.0.0",
2121
"depth": 1,
2222
"source": "registry",
2323
"dependencies": {},
24-
"url": "https://packages.unity.cn"
24+
"url": "https://packages.unity.com"
2525
},
2626
"com.unity.ext.nunit": {
2727
"version": "1.0.6",
2828
"depth": 2,
2929
"source": "registry",
3030
"dependencies": {},
31-
"url": "https://packages.unity.cn"
31+
"url": "https://packages.unity.com"
3232
},
3333
"com.unity.feature.development": {
3434
"version": "1.0.1",
@@ -39,7 +39,7 @@
3939
"com.unity.ide.rider": "3.0.34",
4040
"com.unity.ide.vscode": "1.2.5",
4141
"com.unity.editorcoroutines": "1.0.0",
42-
"com.unity.performance.profile-analyzer": "1.2.2",
42+
"com.unity.performance.profile-analyzer": "1.2.3",
4343
"com.unity.test-framework": "1.1.33",
4444
"com.unity.testtools.codecoverage": "1.2.6"
4545
}
@@ -51,7 +51,7 @@
5151
"dependencies": {
5252
"com.unity.ext.nunit": "1.0.6"
5353
},
54-
"url": "https://packages.unity.cn"
54+
"url": "https://packages.unity.com"
5555
},
5656
"com.unity.ide.visualstudio": {
5757
"version": "2.0.22",
@@ -60,14 +60,14 @@
6060
"dependencies": {
6161
"com.unity.test-framework": "1.1.9"
6262
},
63-
"url": "https://packages.unity.cn"
63+
"url": "https://packages.unity.com"
6464
},
6565
"com.unity.ide.vscode": {
6666
"version": "1.2.5",
6767
"depth": 1,
6868
"source": "registry",
6969
"dependencies": {},
70-
"url": "https://packages.unity.cn"
70+
"url": "https://packages.unity.com"
7171
},
7272
"com.unity.inputsystem": {
7373
"version": "1.11.2",
@@ -76,28 +76,28 @@
7676
"dependencies": {
7777
"com.unity.modules.uielements": "1.0.0"
7878
},
79-
"url": "https://packages.unity.cn"
79+
"url": "https://packages.unity.com"
8080
},
8181
"com.unity.nuget.newtonsoft-json": {
8282
"version": "3.2.1",
8383
"depth": 0,
8484
"source": "registry",
8585
"dependencies": {},
86-
"url": "https://packages.unity.cn"
86+
"url": "https://packages.unity.com"
8787
},
8888
"com.unity.performance.profile-analyzer": {
89-
"version": "1.2.2",
89+
"version": "1.2.3",
9090
"depth": 1,
9191
"source": "registry",
9292
"dependencies": {},
93-
"url": "https://packages.unity.cn"
93+
"url": "https://packages.unity.com"
9494
},
9595
"com.unity.settings-manager": {
9696
"version": "2.0.1",
9797
"depth": 2,
9898
"source": "registry",
9999
"dependencies": {},
100-
"url": "https://packages.unity.cn"
100+
"url": "https://packages.unity.com"
101101
},
102102
"com.unity.test-framework": {
103103
"version": "1.1.33",
@@ -108,7 +108,7 @@
108108
"com.unity.modules.imgui": "1.0.0",
109109
"com.unity.modules.jsonserialize": "1.0.0"
110110
},
111-
"url": "https://packages.unity.cn"
111+
"url": "https://packages.unity.com"
112112
},
113113
"com.unity.testtools.codecoverage": {
114114
"version": "1.2.6",
@@ -118,7 +118,7 @@
118118
"com.unity.test-framework": "1.0.16",
119119
"com.unity.settings-manager": "1.0.1"
120120
},
121-
"url": "https://packages.unity.cn"
121+
"url": "https://packages.unity.com"
122122
},
123123
"com.unity.textmeshpro": {
124124
"version": "3.0.7",
@@ -127,19 +127,19 @@
127127
"dependencies": {
128128
"com.unity.ugui": "1.0.0"
129129
},
130-
"url": "https://packages.unity.cn"
130+
"url": "https://packages.unity.com"
131131
},
132132
"com.unity.timeline": {
133133
"version": "1.7.6",
134134
"depth": 0,
135135
"source": "registry",
136136
"dependencies": {
137+
"com.unity.modules.audio": "1.0.0",
137138
"com.unity.modules.director": "1.0.0",
138139
"com.unity.modules.animation": "1.0.0",
139-
"com.unity.modules.audio": "1.0.0",
140140
"com.unity.modules.particlesystem": "1.0.0"
141141
},
142-
"url": "https://packages.unity.cn"
142+
"url": "https://packages.unity.com"
143143
},
144144
"com.unity.ugui": {
145145
"version": "2.0.0",
@@ -158,7 +158,7 @@
158158
"com.unity.ugui": "1.0.0",
159159
"com.unity.modules.jsonserialize": "1.0.0"
160160
},
161-
"url": "https://packages.unity.cn"
161+
"url": "https://packages.unity.com"
162162
},
163163
"com.unity.modules.ai": {
164164
"version": "1.0.0",

0 commit comments

Comments
 (0)