3030 contents : write
3131 pull-requests : write
3232 steps :
33- - uses : ansys/actions/doc-deploy-changelog@v8
33+ - uses : ansys/actions/doc-deploy-changelog@v9
3434 with :
3535 token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
3636 bot-user : ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
@@ -42,15 +42,15 @@ jobs:
4242 steps :
4343 - name : PyAnsys Vulnerability check (on main)
4444 if : github.ref == 'refs/heads/main'
45- uses : ansys/actions/check-vulnerabilities@v8
45+ uses : ansys/actions/check-vulnerabilities@v9
4646 with :
4747 python-version : ${{ env.MAIN_PYTHON_VERSION }}
4848 python-package-name : ${{ env.PACKAGE_NAME }}
4949 token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
5050
5151 - name : PyAnsys Vulnerability check (on dev mode)
5252 if : github.ref != 'refs/heads/main'
53- uses : ansys/actions/check-vulnerabilities@v8
53+ uses : ansys/actions/check-vulnerabilities@v9
5454 with :
5555 python-version : ${{ env.MAIN_PYTHON_VERSION }}
5656 python-package-name : ${{ env.PACKAGE_NAME }}
6262 runs-on : ubuntu-latest
6363 steps :
6464 - name : PyAnsys documentation style checks
65- uses : ansys/actions/doc-style@v8
65+ uses : ansys/actions/doc-style@v9
6666 with :
6767 token : ${{ secrets.GITHUB_TOKEN }}
6868
7575 uses : pyvista/setup-headless-display-action@v3
7676
7777 - name : " Run Ansys documentation building action"
78- uses : ansys/actions/doc-build@v8
78+ uses : ansys/actions/doc-build@v9
7979 with :
8080 python-version : ${{ env.MAIN_PYTHON_VERSION }}
8181 add-pdf-html-docs-as-assets : true
9595 os : macos-latest
9696 steps :
9797 - name : Build wheelhouse and perform smoke test
98- uses : ansys/actions/build-wheelhouse@v8
98+ uses : ansys/actions/build-wheelhouse@v9
9999 with :
100100 library-name : ${{ env.PACKAGE_NAME }}
101101 operating-system : ${{ matrix.os }}
@@ -115,7 +115,7 @@ jobs:
115115 restore-keys : pyvista-image-cache-${{ runner.os }}-v-${{ env.RESET_IMAGE_CACHE }}
116116
117117 - name : " Run pytest"
118- uses : ansys/actions/tests-pytest@v8
118+ uses : ansys/actions/tests-pytest@v9
119119 with :
120120 python-version : ${{ env.MAIN_PYTHON_VERSION }}
121121 requires-xvfb : true
@@ -139,7 +139,7 @@ jobs:
139139 runs-on : ubuntu-latest
140140 steps :
141141 - name : Build library source and wheel artifacts
142- uses : ansys/actions/build-library@v8
142+ uses : ansys/actions/build-library@v9
143143 with :
144144 library-name : ${{ env.PACKAGE_NAME }}
145145 python-version : ${{ env.MAIN_PYTHON_VERSION }}
@@ -151,7 +151,7 @@ jobs:
151151 needs : [package]
152152 steps :
153153 - name : Deploy the latest documentation
154- uses : ansys/actions/doc-deploy-dev@v8
154+ uses : ansys/actions/doc-deploy-dev@v9
155155 with :
156156 cname : ${{ env.DOCUMENTATION_CNAME }}
157157 token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
@@ -160,22 +160,30 @@ jobs:
160160
161161 release :
162162 name : Release project
163- if : github.event_name == 'push' && contains(github.ref, 'refs/tags')
163+ if : ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
164164 needs : [package]
165165 runs-on : ubuntu-latest
166166 environment : release
167167 permissions :
168168 id-token : write
169169 contents : write
170170 steps :
171- - name : Release to the public PyPI repository
172- uses : ansys/actions/release-pypi-public@v8
171+ - name : " Download the library artifacts from build-library step"
172+ uses : actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
173+ with :
174+ name : ${{ env.PACKAGE_NAME }}-artifacts
175+ path : ${{ env.PACKAGE_NAME }}-artifacts
176+
177+ - name : " Upload artifacts to PyPI using trusted publisher"
178+ uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
173179 with :
174- use-trusted-publisher : true
175- library-name : ${{ env.PACKAGE_NAME }}
180+ repository-url : " https://upload.pypi.org/legacy/"
181+ print-hash : true
182+ packages-dir : ${{ env.PACKAGE_NAME }}-artifacts
183+ skip-existing : false
176184
177185 - name : Release to GitHub
178- uses : ansys/actions/release-github@v8
186+ uses : ansys/actions/release-github@v9
179187 with :
180188 library-name : ${{ env.PACKAGE_NAME }}
181189
@@ -186,7 +194,7 @@ jobs:
186194 needs : [release]
187195 steps :
188196 - name : Deploy the stable documentation
189- uses : ansys/actions/doc-deploy-stable@v8
197+ uses : ansys/actions/doc-deploy-stable@v9
190198 with :
191199 cname : ${{ env.DOCUMENTATION_CNAME }}
192200 token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
0 commit comments