Skip to content

Commit

Permalink
Fix release GitHub workflow (#443)
Browse files Browse the repository at this point in the history
`python -m build` is now the standard way of building a package in
Python because it works regardless of the "build backend" you're using.
We don't use `setup.py` and setuptools anymore.
  • Loading branch information
Eric-Arellano authored Jun 30, 2023
1 parent f47fe81 commit e80d00d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@ jobs:
runs-on: ubuntu-latest
if: github.repository_owner == 'Qiskit'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- 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
- name: Build Artifacts
run: |
python setup.py sdist
python setup.py bdist_wheel
python -m build
shell: bash
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: ./dist/qiskit*
- name: Publish to PyPi
Expand Down

0 comments on commit e80d00d

Please sign in to comment.