diff --git a/.github/workflows/create-wheel.yml b/.github/workflows/create-and-publish-wheel.yml similarity index 92% rename from .github/workflows/create-wheel.yml rename to .github/workflows/create-and-publish-wheel.yml index 7258f5b..abd3d6b 100644 --- a/.github/workflows/create-wheel.yml +++ b/.github/workflows/create-and-publish-wheel.yml @@ -1,4 +1,4 @@ -name: Build +name: Create and Publish wheel on: [push, pull_request] @@ -13,7 +13,6 @@ jobs: steps: - uses: actions/checkout@v4 - # Used to host cibuildwheel - uses: actions/setup-python@v5 - name: Install cibuildwheel @@ -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