Skip to content

Commit

Permalink
Add ghpages action build and update docfx build config
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDarksideJ authored Apr 5, 2024
1 parent 76808f5 commit e935ed4
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion docfx.all.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 0 additions & 1 deletion docfx.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e935ed4

Please sign in to comment.