Skip to content

Publishing to PyPI with trusted publishers (Cherry-pick of #570) (#597) #57

Publishing to PyPI with trusted publishers (Cherry-pick of #570) (#597)

Publishing to PyPI with trusted publishers (Cherry-pick of #570) (#597) #57

Workflow file for this run

name: Release Artifacts
on:
push:
tags:
- '*'
jobs:
wheel-build:
name: Build and Publish Release Artifacts
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
if: github.repository_owner == 'Qiskit'
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 build
- name: Build Artifacts
run: |
python -m build
shell: bash
- uses: actions/upload-artifact@v3
with:
path: ./dist/qiskit*
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
path: ./dist/qiskit*