From 489b2cc90d490dfca325ff283286309b74172941 Mon Sep 17 00:00:00 2001 From: Lehman Garrison Date: Thu, 12 Sep 2024 17:57:55 -0400 Subject: [PATCH] Revert "ci: Always build wheels and don't upload while testing wheel builds" This reverts commit 874992a7ec9e32b81749da5e9fc70230eb477b2c. Wheel builds appear to be working. --- .github/workflows/wheels.yml | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 7e3c9c7..71d226b 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -5,12 +5,10 @@ name: Build # For a real release, tag the version, check that this action succeeded, then make a # GitHub release. -# on: -# push: -# tags: -# - 'v*' on: - pull_request: + push: + tags: + - 'v*' jobs: build_wheels: @@ -87,18 +85,18 @@ jobs: name: cibw-sdist path: dist/*.tar.gz - # upload_all: - # needs: [build_wheels, make_sdist] - # environment: pypi + upload_all: + needs: [build_wheels, make_sdist] + environment: pypi - # permissions: - # id-token: write - # runs-on: ubuntu-latest - # steps: - # - uses: actions/download-artifact@v4 - # with: - # pattern: cibw-* - # path: dist - # merge-multiple: true + permissions: + id-token: write + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v4 + with: + pattern: cibw-* + path: dist + merge-multiple: true - # - uses: pypa/gh-action-pypi-publish@release/v1 + - uses: pypa/gh-action-pypi-publish@release/v1