Skip to content

Commit 59491cc

Browse files
committed
try fix release PYPI
1 parent e1a8913 commit 59491cc

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)