Skip to content

Commit

Permalink
workflows/release: use PyPI trusted publisher (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
airwoodix authored Oct 19, 2023
1 parent c7aacd1 commit 33040c0
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,6 +7,9 @@ jobs:
wheel-build:
name: Build and Publish Release Artifacts
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -19,7 +22,7 @@ jobs:
with:
poetry-version: '1.5.1'
- name: Install release dependencies
run: pip install -U twine wheel typer mistletoe
run: pip install -U typer mistletoe
- name: Build packages
run: |
poetry build
Expand All @@ -36,7 +39,4 @@ jobs:
files: ./dist/qiskit*
body_path: ${{ github.workspace }}-CHANGELOG.txt
- 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 33040c0

Please sign in to comment.