Skip to content

Commit

Permalink
Switch PyPI publishing to use trusted publishers (#1284)
Browse files Browse the repository at this point in the history
### Summary

This PR follows Qiskit/rustworkx#1001 to update
the release CI workflow to use PyPI's trusted publisher mechanism.

(cherry picked from commit cfb47e2)
  • Loading branch information
coruscating authored and mergify[bot] committed Nov 1, 2023
1 parent 6b66777 commit c6a9b8f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ jobs:
wheel-build:
name: Build and Publish Release Artifacts
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.8'
- name: Install Deps
run: pip install -U twine wheel
run: pip install -U wheel
- name: Build Artifacts
run: |
python setup.py sdist
Expand All @@ -24,7 +27,4 @@ jobs:
with:
path: ./dist/qiskit*
- name: Publish to PyPi
env:
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
TWINE_USERNAME: qiskit
run: twine upload dist/qiskit*
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit c6a9b8f

Please sign in to comment.