@@ -16,13 +16,13 @@ jobs:
1616
1717 steps :
1818 - name : .NET SDK Setup
19- uses : actions/setup-dotnet@v4
19+ uses : actions/setup-dotnet@v5
2020 with :
2121 dotnet-version : 10.x
2222
2323 # Checkout the Stride Docs repository from the branch that triggered the workflow
2424 - name : Checkout Stride Docs
25- uses : actions/checkout@v5
25+ uses : actions/checkout@v6
2626 with :
2727 path : ${{ env.DOCS_PATH }}
2828 lfs : true
@@ -36,25 +36,55 @@ jobs:
3636
3737 # Checkout the Stride repository from the default branch
3838 - name : Checkout Stride (note the LFS)
39- uses : actions/checkout@v5
39+ uses : actions/checkout@v6
4040 with :
4141 repository : stride3d/stride
4242 token : ${{ secrets.GITHUB_TOKEN }}
4343 path : stride
4444 lfs : true
45+ ref : master
4546
46- - name : Install DocFX
47+ # Temporary solution till the new docfx is available
48+ - name : Checkout DocFX
49+ uses : actions/checkout@v6
50+ with :
51+ repository : dotnet/docfx
52+ # Tested commit
53+ ref : 917cda864650279e0bbe50b852cb98601e5efa4d
54+ path : docfx-build
55+ fetch-depth : 0
56+
57+ - name : Restore npm dependencies
58+ run : npm install
59+ working-directory : docfx-build/templates
60+
61+ - name : Build site templates
62+ run : npm run build
63+ working-directory : docfx-build/templates
64+
65+ - name : Build DocFX from PR
66+ run : dotnet pack src/docfx -c Release /p:Version=2.9-stride -o drop/nuget
67+ working-directory : docfx-build
68+ shell : pwsh
69+
70+ - name : Build Install DocFX
71+ run : dotnet tool install -g docfx --version 2.9-stride --add-source drop/nuget
72+ working-directory : docfx-build
73+ shell : pwsh
74+ # End of Temporary solution
75+
76+ # - name: Install DocFX
4777 # This installs the latest version of DocFX and may introduce breaking changes
4878 # run: dotnet tool update -g docfx
4979 # This installs a specific, tested version of DocFX.
50- run : dotnet tool update -g docfx --version 2.78.3
80+ # run: dotnet tool update -g docfx --version 2.78.3
5181
5282 - name : Build documentation
5383 run : ./build-all.bat
5484 working-directory : ${{ env.DOCS_PATH }}
5585
5686 - name : Deploy
57- uses : peaceiris/actions-gh-pages@v3.9.2
87+ uses : peaceiris/actions-gh-pages@v4
5888 with :
5989 github_token : ${{ secrets.GITHUB_TOKEN }}
6090 publish_dir : ${{ env.DOCS_PATH }}/_site
0 commit comments