Skip to content

Workflow file for this run

name: Build & Publish Docfx
on:
push:
branches:
- master
permissions:
actions: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
docfx:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup submodule
run: |
git submodule update --init --recursive
- name: Pull engine updates
uses: space-wizards/[email protected]
- name: Update Engine Submodules
run: |
cd RobustToolbox/
git submodule update --init --recursive
- name: Setup .NET Core
uses: actions/[email protected]
with:
dotnet-version: 8.0.x
- name: Install dependencies
run: dotnet restore
- name: Build Project
run: dotnet build --no-restore /p:WarningsAsErrors=nullable
- run: dotnet tool update -g docfx
- run: docfx Content.Docfx/docfx.json
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: 'Content.Docfx/_site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4