Skip to content

Enable caching when building CentOS container #396

Enable caching when building CentOS container

Enable caching when building CentOS container #396

Workflow file for this run

name: Build documentation
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 8.x
- name: Install DocFX
run: dotnet tool update -g docfx
- name: Build Documentation
run: docfx --warningsAsErrors docfx.json
working-directory: ./docs
- name: Upload Site Artifact
uses: actions/upload-pages-artifact@v5
with:
path: './docs/_site'
deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !github.event.repository.fork
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5