25
25
runs-on : ubuntu-latest
26
26
steps :
27
27
- name : PyAnsys documentation style checks
28
- uses : pyansys/actions/doc-style@v3
28
+ uses : pyansys/actions/doc-style@v4
29
29
with :
30
30
token : ${{ secrets.GITHUB_TOKEN }}
31
31
45
45
46
46
- name : Install packages for documentation build
47
47
run : |
48
- sudo apt-get install xvfb pandoc
48
+ sudo apt-get install xvfb pandoc texlive-latex-extra latexmk
49
49
pip install --upgrade build
50
50
pip install .[doc]
51
51
@@ -56,17 +56,28 @@ jobs:
56
56
sleep 10
57
57
cd -
58
58
59
- - name : Build the documentation
59
+ - name : Build the documentation (HTML)
60
60
run : |
61
61
xvfb-run make -C doc html
62
62
63
+ - name : Build the documentation (PDF)
64
+ run : |
65
+ make -C doc pdf
66
+
63
67
- name : Upload HTML documentation
64
68
uses : actions/upload-artifact@v3
65
69
with :
66
70
name : documentation-html
67
71
path : doc/_build/html
68
72
retention-days : 7
69
73
74
+ - name : Upload PDF documentation
75
+ uses : actions/upload-artifact@v3
76
+ with :
77
+ name : documentation-pdf
78
+ path : doc/_build/latex/*.pdf
79
+ retention-days : 7
80
+
70
81
- name : Upload the server logs
71
82
if : always()
72
83
uses : actions/upload-artifact@v3
79
90
runs-on : ubuntu-latest
80
91
steps :
81
92
- name : PyAnsys code style checks
82
- uses : pyansys/actions/code-style@v3
93
+ uses : pyansys/actions/code-style@v4
83
94
with :
84
95
python-version : ${{ env.MAIN_PYTHON_VERSION }}
85
96
95
106
96
107
steps :
97
108
- name : Build wheelhouse and perform smoke test
98
- uses : pyansys/actions/build-wheelhouse@v3
109
+ uses : pyansys/actions/build-wheelhouse@v4
99
110
with :
100
111
library-name : ${{ env.PACKAGE_NAME }}
101
112
library-namespace : ${{ env.PACKAGE_NAMESPACE }}
@@ -163,7 +174,7 @@ jobs:
163
174
runs-on : ubuntu-latest
164
175
steps :
165
176
- name : Build library source and wheel artifacts
166
- uses : pyansys/actions/build-library@v3
177
+ uses : pyansys/actions/build-library@v4
167
178
with :
168
179
library-name : ${{ env.PACKAGE_NAME }}
169
180
python-version : ${{ env.MAIN_PYTHON_VERSION }}
@@ -174,8 +185,15 @@ jobs:
174
185
needs : [package]
175
186
runs-on : ubuntu-latest
176
187
steps :
188
+ - name : Release to the private PyPI repository
189
+ uses : pyansys/actions/release-pypi-private@v4
190
+ with :
191
+ library-name : ${{ env.PACKAGE_NAME }}
192
+ twine-username : " __token__"
193
+ twine-token : ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}
194
+
177
195
- name : Release to GitHub
178
- uses : pyansys/actions/release-github@v3
196
+ uses : pyansys/actions/release-github@v4
179
197
with :
180
198
library-name : ${{ env.PACKAGE_NAME }}
181
199
@@ -186,7 +204,7 @@ jobs:
186
204
needs : [package]
187
205
steps :
188
206
- name : Deploy the latest documentation
189
- uses : pyansys/actions/doc-deploy-dev@v3
207
+ uses : pyansys/actions/doc-deploy-dev@v4
190
208
with :
191
209
cname : ${{ env.DOCUMENTATION_CNAME }}
192
210
token : ${{ secrets.GITHUB_TOKEN }}
@@ -198,8 +216,8 @@ jobs:
198
216
needs : [release]
199
217
steps :
200
218
- name : Deploy the stable documentation
201
- uses : pyansys/actions/doc-deploy-stable@v3
219
+ uses : pyansys/actions/doc-deploy-stable@v4
202
220
with :
203
221
cname : ${{ env.DOCUMENTATION_CNAME }}
204
222
token : ${{ secrets.GITHUB_TOKEN }}
205
- python-version : ${{ env.MAIN_PYTHON_VERSION }}
223
+ python-version : ${{ env.MAIN_PYTHON_VERSION }}
0 commit comments