Skip to content

Commit

Permalink
test: publish wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
rouxm-cs committed Jan 29, 2025
1 parent b7c3d94 commit 162bf4d
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Create and Publish wheel

on: [push, pull_request]

Expand All @@ -13,7 +13,6 @@ jobs:
steps:
- uses: actions/checkout@v4

# Used to host cibuildwheel
- uses: actions/setup-python@v5

- name: Install cibuildwheel
Expand Down Expand Up @@ -42,16 +41,16 @@ jobs:
path: dist/*.tar.gz

upload_pypi:
name: Publish package on pypi
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
environment: pypi
environment: testpypi
permissions:
id-token: write
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v4
with:
# unpacks all CIBW artifacts into dist/
pattern: cibw-*
path: dist
merge-multiple: true
Expand Down

0 comments on commit 162bf4d

Please # to comment.