|
|
@@ -0,0 +1,42 @@
|
|
|
+name: Common Setup for Stride Documentation
|
|
|
+
|
|
|
+on:
|
|
|
+ workflow_call:
|
|
|
+
|
|
|
+jobs:
|
|
|
+ setup:
|
|
|
+ runs-on: windows-2022
|
|
|
+
|
|
|
+ outputs:
|
|
|
+ dotnet-version: '8.x'
|
|
|
+ stride-docs-path: 'stride-docs'
|
|
|
+ stride-path: 'stride'
|
|
|
+
|
|
|
+ steps:
|
|
|
+ # Setup .NET SDK
|
|
|
+ - name: Dotnet Setup
|
|
|
+ uses: actions/setup-dotnet@v4
|
|
|
+ with:
|
|
|
+ dotnet-version: 8.x
|
|
|
+
|
|
|
+ # Checkout the Stride Docs repository from the branch that triggered the workflow
|
|
|
+ - name: Checkout Stride Docs
|
|
|
+ uses: actions/checkout@v4
|
|
|
+ with:
|
|
|
+ path: stride-docs
|
|
|
+ lfs: true
|
|
|
+
|
|
|
+ # Checkout the Stride repository from the default branch
|
|
|
+ - name: Checkout Stride (note the LFS)
|
|
|
+ uses: actions/checkout@v4
|
|
|
+ with:
|
|
|
+ repository: stride3d/stride
|
|
|
+ token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
+ path: stride
|
|
|
+ lfs: true
|
|
|
+
|
|
|
+ - name: Install DocFX
|
|
|
+ # This installs the latest version of DocFX and may introduce breaking changes
|
|
|
+ # run: dotnet tool update -g docfx
|
|
|
+ # This installs a specific, tested version of DocFX.
|
|
|
+ run: dotnet tool update -g docfx --version 2.76.0
|