2626 RESET_DOC_BUILD_CACHE : 0
2727 RESET_AUTOSUMMARY_CACHE : 0
2828 PACKAGE_NAME : PyMAPDL
29+ DOCUMENTATION_CNAME : ' mapdl.docs.pyansys.com'
30+
31+ concurrency :
32+ group : ${{ github.workflow }}-${{ github.ref }}
33+ cancel-in-progress : true
2934
3035jobs :
3136
@@ -136,7 +141,7 @@ jobs:
136141 uses : actions/cache@v2
137142 with :
138143 path : ~/.cache/pip
139- key : Python-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements/requirements_docs *.txt') }}
144+ key : Python-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements/requirements_doc *.txt') }}
140145 restore-keys : |
141146 Python-${{ runner.os }}-${{ matrix.python-version }}
142147
@@ -177,7 +182,7 @@ jobs:
177182 - name : Cache docs build directory
178183 uses : actions/cache@v2
179184 with :
180- path : doc/build
185+ path : doc/_build
181186 key : doc-build-${{ steps.version.outputs.PYMAPDL_VERSION }}-${{ github.sha }}
182187 restore-keys : |
183188 doc-build-${{ steps.version.outputs.PYMAPDL_VERSION }}
@@ -192,34 +197,24 @@ jobs:
192197
193198 - name : Install Docs Build Requirements
194199 run : |
195- pip install -r requirements/requirements_docs .txt
200+ pip install -r requirements/requirements_doc .txt
196201
197202 - name : Build Documentation
198203 run : |
199204 xvfb-run make -C doc html SPHINXOPTS="-j auto -W --keep-going"
200205
201206 - name : Zip documentation
202207 run : |
203- cd doc/build /html
208+ cd doc/_build /html
204209 zip -r PyMAPDL_documentation.zip *
205210
206211 - name : Upload HTML Documentation
207212 uses : actions/upload-artifact@v2
208213 with :
209214 name : HTML-Documentation
210- path : doc/build /html/PyMAPDL_documentation.zip
215+ path : doc/_build /html/PyMAPDL_documentation.zip
211216 retention-days : 7
212217
213- - name : Deploy
214- if : github.event_name == 'push' && contains(github.ref, 'refs/tags')
215- 216- with :
217- repository-name : pyansys/pymapdl-docs
218- token : ${{ steps.get_workflow_token.outputs.token }}
219- BRANCH : gh-pages
220- FOLDER : doc/build/html
221- CLEAN : true
222-
223218 - name : Build PDF Documentation
224219 working-directory : doc
225220 run : make pdf
@@ -228,7 +223,7 @@ jobs:
228223 uses : actions/upload-artifact@v2
229224 with :
230225 name : PDF-Documentation
231- path : doc/build /latex/pymapdl*.pdf
226+ path : doc/_build /latex/pymapdl*.pdf
232227 retention-days : 7
233228
234229 build_test :
@@ -349,3 +344,17 @@ jobs:
349344 overwrite : " {
350345 title: `Release FAILED!`,
351346 }"
347+
348+ upload_docs_release :
349+ name : " Upload release documentation"
350+ if : github.event_name == 'push' && contains(github.ref, 'refs/tags')
351+ runs-on : ubuntu-latest
352+ needs : [release]
353+ steps :
354+ - name : Deploy the stable documentation
355+ uses : pyansys/actions/doc-deploy-stable@v2
356+ with :
357+ cname : ${{ env.DOCUMENTATION_CNAME }}
358+ token : ${{ secrets.GITHUB_TOKEN }}
359+ python-version : ' 3.9'
360+
0 commit comments