Skip to content

Commit 3e17373

Browse files
maint: Add doc build action
1 parent 60e57cf commit 3e17373

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci_cd.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,28 @@ jobs:
4747
operating-system: ${{ matrix.os }}
4848
python-version: ${{ matrix.python-version }}
4949

50+
docs-style:
51+
name: Documentation Style Check
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: PyAnsys documentation style checks
55+
uses: ansys/actions/doc-style@v6
56+
with:
57+
token: ${{ secrets.GITHUB_TOKEN }}
58+
59+
docs-build:
60+
name: Documentation Build
61+
runs-on: ubuntu-latest
62+
needs: [docs-style]
63+
steps:
64+
- name: Setup headless display
65+
uses: pyvista/setup-headless-display-action@v2
66+
67+
- name: "Run Ansys documentation building action"
68+
uses: ansys/actions/doc-build@v6
69+
with:
70+
add-pdf-html-docs-as-assets: true
71+
5072
release:
5173
name: "Release project"
5274
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')

0 commit comments

Comments
 (0)