From 7233cbe9bce3510491427205a76d673241d58d22 Mon Sep 17 00:00:00 2001 From: peekxc Date: Wed, 4 Dec 2024 12:57:05 -0500 Subject: [PATCH] Re-enabling release to PyPI workflow --- .github/workflows/wheels.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 19880e5..ed24511 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -82,20 +82,20 @@ jobs: path: wheelhouse/*.whl - # upload_all: - # needs: [build_wheels] - # environment: pypi - # permissions: - # id-token: write - # runs-on: ubuntu-latest - # # if: github.event_name == 'release' && github.event.action == 'published' - # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - # steps: - # - uses: actions/download-artifact@v3 - # with: - # name: artifact - # path: | - # dist - # wheelhouse - # dist/wheelhouse - # - uses: pypa/gh-action-pypi-publish@release/v1 + upload_all: + needs: [build_wheels] + environment: pypi + permissions: + id-token: write + runs-on: ubuntu-latest + # if: github.event_name == 'release' && github.event.action == 'published' + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + steps: + - uses: actions/download-artifact@v3 + with: + name: artifact + path: | + dist + wheelhouse + dist/wheelhouse + - uses: pypa/gh-action-pypi-publish@release/v1