@@ -28,17 +28,17 @@ jobs:
2828 build :
2929 # Run this job only if the repository is 'stride3d/stride-docs'
3030 if : github.repository == 'stride3d/stride-docs'
31- runs-on : windows-2022
31+ runs-on : windows-latest
3232
3333 steps :
3434 - name : .NET SDK Setup
3535 uses : actions/setup-dotnet@v4
3636 with :
37- dotnet-version : 8 .x
37+ dotnet-version : 10 .x
3838
3939 # Checkout the Stride Docs repository from the branch that triggered the workflow
4040 - name : Checkout Stride Docs
41- uses : actions/checkout@v4
41+ uses : actions/checkout@v5
4242 with :
4343 path : ${{ env.DOCS_PATH }}
4444 lfs : true
@@ -52,18 +52,46 @@ jobs:
5252
5353 # Checkout the Stride repository from the default branch
5454 - name : Checkout Stride (note the LFS)
55- uses : actions/checkout@v4
55+ uses : actions/checkout@v5
5656 with :
5757 repository : stride3d/stride
5858 token : ${{ secrets.GITHUB_TOKEN }}
5959 path : stride
6060 lfs : true
61+ ref : master
6162
62- - name : Install DocFX
63+ # Temporary solution till the new docfx is available
64+ - name : Checkout DocFX PR Branch
65+ uses : actions/checkout@v5
66+ with :
67+ repository : filzrev/docfx
68+ ref : feat-add-net10-support
69+ path : docfx-build
70+
71+ - name : Restore npm dependencies
72+ run : npm install
73+ working-directory : docfx-build/templates
74+
75+ - name : Build site templates
76+ run : npm run build
77+ working-directory : docfx-build/templates
78+
79+ - name : Build DocFX from PR
80+ run : dotnet pack src/docfx -c Release /p:Version=2.9-stride -o drop/nuget
81+ working-directory : docfx-build
82+ shell : pwsh
83+
84+ - name : Build Install DocFX
85+ run : dotnet tool install -g docfx --version 2.9-stride --add-source drop/nuget
86+ working-directory : docfx-build
87+ shell : pwsh
88+ # End of Temporary solution
89+
90+ # - name: Install DocFX
6391 # This installs the latest version of DocFX and may introduce breaking changes
6492 # run: dotnet tool update -g docfx
6593 # This installs a specific, tested version of DocFX.
66- run : dotnet tool update -g docfx --version 2.78.3
94+ # run: dotnet tool update -g docfx --version 2.78.3
6795
6896 - name : Build documentation
6997 run : ./build-all.bat
73101 run : 7z a -r DocFX-app.zip ./${{ env.DOCS_PATH }}/_site/*
74102
75103 - name : Upload artifact for deployment job
76- uses : actions/upload-artifact@v4
104+ uses : actions/upload-artifact@v5
77105 with :
78106 name : DocFX-app
79107 path : DocFX-app.zip
87115
88116 deploy :
89117 if : github.repository == 'stride3d/stride-docs'
90- runs-on : windows-2022
118+ runs-on : windows-latest
91119
92120 needs : build
93121 environment :
96124
97125 steps :
98126 - name : Download artifact from build job
99- uses : actions/download-artifact@v4
127+ uses : actions/download-artifact@v6
100128 with :
101129 name : DocFX-app
102130
0 commit comments