File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -160,19 +160,27 @@ 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@v9
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
178186 uses : ansys/actions/release-github@v9
You can’t perform that action at this time.
0 commit comments