Skip to content

Commit 52248b7

Browse files
maint: Migration to new version
1 parent 4e70aa3 commit 52248b7

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/ci_cd.yml

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

0 commit comments

Comments
 (0)