@@ -189,7 +189,7 @@ jobs:
189189 doc-deploy-stable :
190190 name : Deploy stable documentation
191191 runs-on : ubuntu-latest
192- needs : [doc-build, package]
192+ needs : [doc-build, package, release ]
193193 if : github.event_name == 'push' && contains(github.ref, 'refs/tags')
194194 steps :
195195 - name : Deploy the stable documentation
@@ -227,30 +227,24 @@ jobs:
227227 api-key : ${{ env.MEILISEARCH_API_KEY }}
228228 python-version : ${{ env.MAIN_PYTHON_VERSION }}
229229
230- release-pypi-public :
230+ release :
231231 name : Release to the public PyPI repository
232- needs : [package, update-changelog]
232+ if : github.event_name == 'push' && contains(github.ref, 'refs/tags')
233+ needs : [doc-build, package, update-changelog]
233234 runs-on : ubuntu-latest
234235 # Specifying a GitHub environment is optional, but strongly encouraged
235236 environment : release
236237 permissions :
237238 id-token : write
238239 contents : write
239240 steps :
240- - name : " Release to the public PyPI repository"
241- if : github.event_name == 'push' && contains(github.ref, 'refs/tags')
241+ - name : Release to the public PyPI repository
242242 uses : ansys/actions/release-pypi-public@v6
243243 with :
244244 library-name : ${{ env.PACKAGE_NAME }}
245245 use-trusted-publisher : true
246246
247- release-github :
248- name : Release to GitHub
249- needs : [doc-build, package, update-changelog]
250- runs-on : ubuntu-latest
251- steps :
252- - name : " Release to GitHub"
253- if : github.event_name == 'push' && contains(github.ref, 'refs/tags')
247+ - name : Release to GitHub
254248 uses : ansys/actions/release-github@v6
255249 with :
256- library-name : ${{ env.PACKAGE_NAME }}
250+ library-name : ${{ env.PACKAGE_NAME }}
0 commit comments