@@ -25,17 +25,17 @@ jobs:
2525 build :
2626 # Run this job only if the repository is 'stride3d/stride-docs'
2727 if : github.repository == 'stride3d/stride-docs'
28- runs-on : windows-2022
28+ runs-on : windows-latest
2929
3030 steps :
3131 - name : .NET SDK Setup
3232 uses : actions/setup-dotnet@v4
3333 with :
34- dotnet-version : 8 .x
34+ dotnet-version : 10 .x
3535
3636 # Checkout the Stride Docs repository from the branch that triggered the workflow
3737 - name : Checkout Stride Docs
38- uses : actions/checkout@v4
38+ uses : actions/checkout@v5
3939 with :
4040 path : ${{ env.DOCS_PATH }}
4141 lfs : true
@@ -57,19 +57,46 @@ jobs:
5757
5858 # Checkout the Stride repository from the default branch
5959 - name : Checkout Stride (note the LFS)
60- uses : actions/checkout@v4
60+ uses : actions/checkout@v5
6161 with :
6262 repository : stride3d/stride
6363 token : ${{ secrets.GITHUB_TOKEN }}
6464 path : stride
6565 lfs : true
6666 ref : master
6767
68- - name : Install DocFX
68+ # Temporary solution till the new docfx is available
69+ - name : Checkout DocFX PR Branch
70+ uses : actions/checkout@v5
71+ with :
72+ repository : filzrev/docfx
73+ ref : feat-add-net10-support
74+ path : docfx-build
75+
76+ - name : Restore npm dependencies
77+ run : npm install
78+ working-directory : docfx-build/templates
79+
80+ - name : Build site templates
81+ run : npm run build
82+ working-directory : docfx-build/templates
83+
84+ - name : Build DocFX from PR
85+ run : dotnet pack src/docfx -c Release /p:Version=2.9-stride -o drop/nuget
86+ working-directory : docfx-build
87+ shell : pwsh
88+
89+ - name : Build Install DocFX
90+ run : dotnet tool install -g docfx --version 2.9-stride --add-source drop/nuget
91+ working-directory : docfx-build
92+ shell : pwsh
93+ # End of Temporary solution
94+
95+ # - name: Install DocFX
6996 # This installs the latest version of DocFX and may introduce breaking changes
7097 # run: dotnet tool update -g docfx
7198 # This installs a specific, tested version of DocFX.
72- run : dotnet tool update -g docfx --version 2.78.3
99+ # run: dotnet tool update -g docfx --version 2.78.3
73100
74101 - name : Build documentation
75102 run : ./build-all.bat
@@ -79,14 +106,14 @@ jobs:
79106 run : 7z a -r DocFX-app.zip ./${{ env.DOCS_PATH }}/_site/*
80107
81108 - name : Upload artifact for deployment job
82- uses : actions/upload-artifact@v4
109+ uses : actions/upload-artifact@v5
83110 with :
84111 name : DocFX-app
85112 path : DocFX-app.zip
86113
87114 deploy :
88115 if : github.repository == 'stride3d/stride-docs'
89- runs-on : windows-2022
116+ runs-on : windows-latest
90117
91118 needs : build
92119 environment :
95122
96123 steps :
97124 - name : Download artifact from build job
98- uses : actions/download-artifact@v4
125+ uses : actions/download-artifact@v6
99126 with :
100127 name : DocFX-app
101128
0 commit comments