File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -163,12 +163,19 @@ jobs:
163163 twine-username : " __token__"
164164 twine-token : ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}
165165
166- - name : Release to the public PyPI repository
167- uses : ansys/ actions/release-pypi-public@v9
166+ - name : " Download the library artifacts from build-library step "
167+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
168168 with :
169- library-name : ${{ env.PACKAGE_NAME }}
170- twine-username : " __token__"
171- twine-token : ${{ secrets.PYPI_TOKEN }}
169+ name : ${{ env.PACKAGE_NAME }}-artifacts
170+ path : ${{ env.PACKAGE_NAME }}-artifacts
171+
172+ - name : " Upload artifacts to PyPI using trusted publisher"
173+ uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
174+ with :
175+ repository-url : " https://upload.pypi.org/legacy/"
176+ print-hash : true
177+ packages-dir : ${{ env.PACKAGE_NAME }}-artifacts
178+ skip-existing : false
172179
173180 - name : Release to GitHub
174181 uses : ansys/actions/release-github@v9
You can’t perform that action at this time.
0 commit comments