diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..a6ea66c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +name: Build Documentation +on: + push: + branches: + - 'main' + pull_request: + branches: + - 'main' +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Clone Repository + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Setup .NET SDK + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + + - name: Restore dotnet tools + run: dotnet tool restore + + - name: Run Build + run: dotnet docfx docfx.all.json + + - name: Deploy + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: /_site + clean: true \ No newline at end of file diff --git a/docfx.all.json b/docfx.all.json index 6d6cc6c..e259e7c 100644 --- a/docfx.all.json +++ b/docfx.all.json @@ -3,7 +3,6 @@ { "src": [ { - "src": "../", "files": [ "external/MonoGame/MonoGame.Framework/MonoGame.Framework.DesktopGL.csproj", "external/MonoGame/MonoGame.Framework.Content.Pipeline/MonoGame.Framework.Content.Pipeline.csproj" diff --git a/docfx.api.json b/docfx.api.json index 11ec55b..bb39530 100644 --- a/docfx.api.json +++ b/docfx.api.json @@ -3,7 +3,6 @@ { "src": [ { - "src": "../", "files": [ "external/MonoGame/MonoGame.Framework/MonoGame.Framework.DesktopGL.csproj", "external/MonoGame/MonoGame.Framework.Content.Pipeline/MonoGame.Framework.Content.Pipeline.csproj"