Skip to content

Commit

Permalink
Merge pull request #6 from qiskit-community/pypi-trusted-publisher
Browse files Browse the repository at this point in the history
Switch PyPI publishing to use trusted publishers
  • Loading branch information
itoko authored Oct 17, 2023
2 parents 9571256 + 36b311e commit c14ae64
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,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.x'
- name: Install dependencies
run: pip install -U twine wheel build
run: pip install -U wheel build
- name: Build Artifacts
run: |
python -m build
Expand All @@ -27,7 +30,4 @@ jobs:
with:
path: ./dist/qiskit*
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/qiskit*
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit c14ae64

Please sign in to comment.