Skip to content

Merge pull request #17 from HamletTanyavong/dev #21

Merge pull request #17 from HamletTanyavong/dev

Merge pull request #17 from HamletTanyavong/dev #21

# Generate documentation for Mathematics.NET
name: "Generate Documentation Site"
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
publish-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.x
- run: dotnet tool update -g docfx
- run: docfx docs/docfx.json
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site
cname: mathematics.hamlettanyavong.com
force_orphan: true