Skip to content

Commit bd24fa3

Browse files
Cherry pick PR #102 (#103)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 87f5bc4 commit bd24fa3

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/ci_cd.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,15 @@ jobs:
145145
runs-on: ubuntu-latest
146146
needs: [build-library, server-checks]
147147
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
148+
permissions:
149+
id-token: write
150+
contents: write
148151
steps:
149152
- uses: ansys/actions/release-pypi-public@v6
150153
name: "Release to public PyPI"
151154
with:
152155
library-name: ${{ env.LIBRARY_NAME }}
153-
twine-username: "__token__"
154-
twine-token: ${{ secrets.PYPI_TOKEN }}
156+
use-trusted-publisher: true
155157

156158
- uses: ansys/actions/release-github@v6
157159
name: "Release to GitHub"

doc/changelog.d/102.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use trusted publisher

doc/changelog.d/103.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Cherry pick PR #102

0 commit comments

Comments
 (0)