Skip to content

Commit 62d75a1

Browse files
Switch PyPI publishing to use trusted publishers (backport #1284) (#1308)
This is an automatic backport of pull request #1284 done by [Mergify](https://mergify.com). --- <details> <summary>Mergify commands and options</summary> <br /> More conditions and actions can be found in the [documentation](https://docs.mergify.com/). You can also trigger Mergify actions by commenting on this pull request: - `@Mergifyio refresh` will re-evaluate the rules - `@Mergifyio rebase` will rebase this PR on its base branch - `@Mergifyio update` will merge the base branch into this PR - `@Mergifyio backport <destination>` will backport this PR on `<destination>` branch Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you can: - look at your merge queues - generate the Mergify configuration with the config editor. Finally, you can contact us on https://mergify.com </details> Co-authored-by: Helena Zhang <Helena.Zhang@ibm.com>
1 parent cb83410 commit 62d75a1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@ jobs:
77
wheel-build:
88
name: Build and Publish Release Artifacts
99
runs-on: ubuntu-latest
10+
environment: release
11+
permissions:
12+
id-token: write
1013
steps:
1114
- uses: actions/checkout@v3
1215
- uses: actions/setup-python@v4
1316
name: Install Python
1417
with:
1518
python-version: '3.8'
1619
- name: Install Deps
17-
run: pip install -U twine wheel
20+
run: pip install -U wheel
1821
- name: Build Artifacts
1922
run: |
2023
python setup.py sdist
@@ -24,7 +27,4 @@ jobs:
2427
with:
2528
path: ./dist/qiskit*
2629
- name: Publish to PyPi
27-
env:
28-
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
29-
TWINE_USERNAME: qiskit
30-
run: twine upload dist/qiskit*
30+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)