File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747 - name : Check dependency health
4848 run : python3 -m scripts.dependencies.check_package_health --solution ModularityKit.Mutator.slnx
4949
50- docs :
51- name : docs
52- runs-on : ubuntu-latest
53- needs : build
54-
55- steps :
56- - uses : actions/checkout@v5
57-
58- - uses : actions/setup-dotnet@v5
59- with :
60- dotnet-version : 10.0.x
61-
62- - name : Install DocFX
63- run : dotnet tool update -g docfx
64-
65- - name : Build docs
66- run : docfx docfx.json
67-
6850 tests :
6951 name : ${{ matrix.name }}
7052 runs-on : ubuntu-latest
@@ -195,7 +177,6 @@ jobs:
195177 needs :
196178 - build
197179 - dependency-health
198- - docs
199180 - tests
200181 - examples-core
201182 - examples-governance
@@ -207,15 +188,13 @@ jobs:
207188 run : |
208189 echo "build: ${{ needs.build.result }}"
209190 echo "dependency-health: ${{ needs.dependency-health.result }}"
210- echo "docs: ${{ needs.docs.result }}"
211191 echo "tests: ${{ needs.tests.result }}"
212192 echo "examples-core: ${{ needs.examples-core.result }}"
213193 echo "examples-governance: ${{ needs.examples-governance.result }}"
214194 echo "examples-governance-redis: ${{ needs.examples-governance-redis.result }}"
215195
216196 if [ "${{ needs.build.result }}" != "success" ] || \
217197 [ "${{ needs.dependency-health.result }}" != "success" ] || \
218- [ "${{ needs.docs.result }}" != "success" ] || \
219198 [ "${{ needs.tests.result }}" != "success" ] || \
220199 [ "${{ needs.examples-core.result }}" != "success" ] || \
221200 [ "${{ needs.examples-governance.result }}" != "success" ] || \
Original file line number Diff line number Diff line change 1+ name : Publish Docs
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : read
10+ pages : write
11+ id-token : write
12+
13+ concurrency :
14+ group : pages
15+ cancel-in-progress : false
16+
17+ jobs :
18+ build :
19+ name : build docs
20+ runs-on : ubuntu-latest
21+
22+ steps :
23+ - uses : actions/checkout@v5
24+
25+ - uses : actions/setup-dotnet@v5
26+ with :
27+ dotnet-version : 10.0.x
28+
29+ - name : Install DocFX
30+ run : dotnet tool update -g docfx
31+
32+ - name : Build docs
33+ run : docfx docfx.json
34+
35+ - name : Mark site as non-Jekyll
36+ run : touch _site/.nojekyll
37+
38+ - name : Upload docs site
39+ uses : actions/upload-pages-artifact@v3
40+ with :
41+ path : _site
42+
43+ deploy :
44+ name : deploy docs
45+ runs-on : ubuntu-latest
46+ needs : build
47+ environment :
48+ name : github-pages
49+ url : ${{ steps.deployment.outputs.page_url }}
50+
51+ steps :
52+ - name : Deploy to GitHub Pages
53+ id : deployment
54+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -48,3 +48,7 @@ docfx docfx.json
4848
4949The generated site includes the conceptual docs under ` Docs/ ` and the public API reference for the
5050three published packages.
51+
52+ The published site is deployed from ` main ` to GitHub Pages:
53+
54+ https://modularitykit.github.io/ModularityKit.Mutator/
You can’t perform that action at this time.
0 commit comments