Skip to content

Commit

Permalink
Switch PyPI publishing to use trusted publishers (Qiskit-Extensions#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.
  • Loading branch information
coruscating authored and nkanazawa1989 committed Jan 10, 2024
1 parent 6d26ec1 commit b707e0a
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 b707e0a

Please sign in to comment.