Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Commit 45719f3

Browse files
committed
Add workflow for building documentation
1 parent 4db907d commit 45719f3

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will build and publish documentation with docfx
2+
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
3+
4+
name: Documentation Publish
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build_docs:
13+
runs-on: ubuntu-latest
14+
name: Build and publish documentation
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v1
18+
19+
- name: Build docfx
20+
uses: nikeee/docfx-action@v1.0.0
21+
with:
22+
args: docs/docfx.json
23+
24+
- name: Publish
25+
if: github.event_name == 'push'
26+
uses: peaceiris/actions-gh-pages@v3
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
publish_dir: docs/_site
30+
force_orphan: true

0 commit comments

Comments
 (0)