Skip to content

Commit

Permalink
Update release workflow (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrison authored Sep 6, 2024
1 parent 6670ade commit d828281
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,22 @@ jobs:
name: pypi
runs-on: ubuntu-latest
needs: github
environment:
name: pypi
url: https://pypi.org/p/qiskit-addon-cutting
permissions:
id-token: write
steps:
- name: Checkout tag
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
- name: Install hatch
- name: Install `build` tool
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Build using hatch
pip install build
- name: Build distribution
run: |
hatch build
- name: Publish release
env:
HATCH_INDEX_REPO: https://upload.pypi.org/legacy/
HATCH_INDEX_USER: __token__
HATCH_INDEX_AUTH: ${{ secrets.PYPI_TOKEN }}
run: |
hatch publish
python -m build
- name: Publish release to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit d828281

Please sign in to comment.