Skip to content

Update build-and-test.yml #222

Update build-and-test.yml

Update build-and-test.yml #222

name: Build and Deploy Documentation
on:
push:
branches:
- master
- release/* # Default release branch
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
- name: Install docfx
run: dotnet tool update -g docfx
- name: Build documentation
run: docfx .documentation/docfx.json
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: .documentation/_site
token: ${{ secrets.GITHUB_TOKEN }}