1717 PACKAGE_NAMESPACE : pyansys
1818 MAIN_PYTHON_VERSION : ' 3.11'
1919 DOCUMENTATION_CNAME : " docs.pyansys.com"
20- MEILISEARCH_API_KEY : ${{ secrets.MEILISEARCH_API_KEY }}
21- MEILISEARCH_PUBLIC_API_KEY : ${{ secrets.MEILISEARCH_PUBLIC_API_KEY }}
2220
2321jobs :
2422 check-vulnerabilities :
2725 steps :
2826 - name : PyAnsys Vulnerability Check (on PRs)
2927 if : github.event_name == 'pull_request'
30- uses : ansys/actions/check-vulnerabilities@v7
28+ uses : ansys/actions/check-vulnerabilities@v8
3129 with :
3230 python-version : ${{ env.MAIN_PYTHON_VERSION }}
3331 python-package-name : ${{ env.PACKAGE_NAME }}
3634
3735 - name : PyAnsys Vulnerability Check (any other case)
3836 if : github.event_name != 'pull_request'
39- uses : ansys/actions/check-vulnerabilities@v7
37+ uses : ansys/actions/check-vulnerabilities@v8
4038 with :
4139 python-version : ${{ env.MAIN_PYTHON_VERSION }}
4240 python-package-name : ${{ env.PACKAGE_NAME }}
@@ -51,13 +49,14 @@ jobs:
5149 with :
5250 python-version : ${{ env.MAIN_PYTHON_VERSION }}
5351 target : " all"
52+ whitelist-license-check : " attrs" # This has MIT license but fails the check
5453
5554 docs-style :
5655 name : Documentation Style Check
5756 runs-on : ubuntu-latest
5857 steps :
5958 - name : PyAnsys documentation style checks
60- uses : ansys/actions/doc-style@v7
59+ uses : ansys/actions/doc-style@v8
6160 with :
6261 token : ${{ secrets.GITHUB_TOKEN }}
6362
@@ -127,12 +126,13 @@ jobs:
127126
128127 steps :
129128 - name : Build wheelhouse and perform smoke test
130- uses : ansys/actions/build-wheelhouse@v7
129+ uses : ansys/actions/build-wheelhouse@v8
131130 with :
132131 library-name : ${{ env.PACKAGE_NAME }}
133132 operating-system : ${{ runner.os }}
134133 python-version : ${{ matrix.python-version }}
135134 target : " all"
135+ whitelist-license-check : " attrs" # This has MIT license but fails the check
136136
137137 - name : List dependencies (pip freeze)
138138 run : |
@@ -153,7 +153,7 @@ jobs:
153153
154154 steps :
155155 - name : Build documentation
156- uses : ansys/actions/doc-build@v7
156+ uses : ansys/actions/doc-build@v8
157157 with :
158158 python-version : ${{ env.MAIN_PYTHON_VERSION }}
159159 dependencies : " build-essential zip pandoc texlive-latex-extra latexmk texlive-pstricks"
@@ -165,37 +165,25 @@ jobs:
165165 needs : [package]
166166 steps :
167167 - name : Deploy the latest documentation
168- uses : ansys/actions/doc-deploy-dev@v7
168+ uses : ansys/actions/doc-deploy-dev@v8
169169 with :
170170 cname : ${{ env.DOCUMENTATION_CNAME }}
171- token : ${{ secrets.GITHUB_TOKEN }}
171+ token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
172+ bot-user : ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
173+ bot-email : ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
172174
173175 adapt-landing-page-dev :
174176 uses : ./.github/workflows/update-gh-pages.yml
175177 needs : [doc-deploy-dev]
176178 secrets : inherit
177179
178- doc-index-dev :
179- name : " Deploy dev docs index"
180- if : github.ref == 'refs/heads/main'
181- runs-on : ubuntu-latest
182- needs : [doc-deploy-dev]
183- steps :
184- - name : " Deploy the dev documentation index"
185- uses : ansys/actions/doc-deploy-index@v7
186- with :
187- cname : ${{ env.DOCUMENTATION_CNAME }}/version/dev
188- index-name : pyansys-vdev
189- host-url : ${{ vars.MEILISEARCH_HOST_URL }}
190- api-key : ${{ env.MEILISEARCH_API_KEY }}
191-
192180 package :
193181 name : Package library
194182 runs-on : ubuntu-latest
195183 needs : [docs-build, smoke-tests-core]
196184 steps :
197185 - name : Build library source and wheel artifacts
198- uses : ansys/actions/build-library@v7
186+ uses : ansys/actions/build-library@v8
199187 with :
200188 library-name : ${{ env.PACKAGE_NAME }}
201189 python-version : ${{ env.MAIN_PYTHON_VERSION }}
@@ -207,14 +195,14 @@ jobs:
207195 runs-on : ubuntu-latest
208196 steps :
209197 - name : Release to PyPI repository
210- uses : ansys/actions/release-pypi-public@v7
198+ uses : ansys/actions/release-pypi-public@v8
211199 with :
212200 library-name : ${{ env.PACKAGE_NAME }}
213201 twine-username : __token__
214202 twine-token : ${{ secrets.PYPI_TOKEN }}
215203
216204 - name : Release to GitHub
217- uses : ansys/actions/release-github@v7
205+ uses : ansys/actions/release-github@v8
218206 with :
219207 library-name : ${{ env.PACKAGE_NAME }}
220208 additional-artifacts : ' all-deps-Linux-3.10 all-deps-Linux-3.11 all-deps-Linux-3.12 all-deps-Windows-3.10 all-deps-Windows-3.11 all-deps-Windows-3.12 all-deps-macOS-3.10 all-deps-macOS-3.11 all-deps-macOS-3.12'
@@ -225,42 +213,14 @@ jobs:
225213 needs : [release]
226214 steps :
227215 - name : Deploy the latest release documentation
228- uses : ansys/actions/doc-deploy-stable@v7
216+ uses : ansys/actions/doc-deploy-stable@v8
229217 with :
230218 cname : ${{ env.DOCUMENTATION_CNAME }}
231- token : ${{ secrets.GITHUB_TOKEN }}
219+ token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
220+ bot-user : ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
221+ bot-email : ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
232222
233223 adapt-landing-page-release :
234224 uses : ./.github/workflows/update-gh-pages.yml
235225 needs : [docs-release]
236226 secrets : inherit
237-
238- doc-index-release :
239- name : " Deploy release docs index"
240- runs-on : ubuntu-latest
241- needs : docs-release
242- steps :
243- - name : " Install Git and clone project"
244- uses : actions/checkout@v4
245-
246- - name : " Install the library to get the version"
247- shell : bash
248- run : |
249- python -m pip install -e .
250-
251- - name : " Get the version of the library"
252- run : |
253- VERSION=$(python -c "from ${{ env.PACKAGE_NAMESPACE }} import __version__; print('.'.join(__version__.split('.')[:2]))")
254- VERSION_MEILI=$(python -c "from ${{ env.PACKAGE_NAMESPACE }} import __version__; print('-'.join(__version__.split('.')[:2]))")
255- echo "Calculated VERSION: $VERSION"
256- echo "Calculated VERSION_MEILI: $VERSION_MEILI"
257- echo "VERSION=$VERSION" >> $GITHUB_ENV
258- echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV
259-
260- - name : " Deploy the latest documentation index"
261- uses : ansys/actions/doc-deploy-index@v7
262- with :
263- cname : ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }}
264- index-name : pyansys-v${{ env.VERSION_MEILI }}
265- host-url : ${{ vars.MEILISEARCH_HOST_URL }}
266- api-key : ${{ env.MEILISEARCH_API_KEY }}
0 commit comments