This is an automated email from the ASF dual-hosted git repository.

chaokunyang pushed a commit to tag v0.10.0
in repository https://gitbox.apache.org/repos/asf/fury.git

commit e079d9a9dfdea95669c45eccea73b15e36e9e7b0
Author: chaokunyang <[email protected]>
AuthorDate: Thu Feb 6 21:56:10 2025 +0800

    use upload download action for windows/mac release support
---
 .github/workflows/release.yaml | 29 ++++++++++++++++++++---------
 1 file changed, 20 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index a4ad2821..7cca1607 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -23,16 +23,13 @@ on:
       - "v*"
 
 jobs:
-  release-python:
-    name: Publish Fury Python to PyPI
+  build-wheels:
+    name: Build Fury Python Wheel
     if: github.repository == 'apache/fury'
-    environment:
-      name: pypi
-      url: https://pypi.org/project/pyfury
     strategy:
       matrix:
         python-version: [3.8, 3.9, 3.11, 3.12]
-        os: [ubuntu-latest, macos-13, macos-14, windows-2022] # macos-13: x86, 
macos-14: arm64
+        os: [ubuntu-latest, macos-13, macos-14, windows-2022]
     runs-on: ${{ matrix.os }}
     steps:
       - uses: actions/checkout@v4
@@ -51,9 +48,23 @@ jobs:
       - name: Update version in setup.py
         run: ci/deploy.sh bump_py_version
       - name: Build a binary wheel
-        run: |
-          ci/deploy.sh build_pyfury
-          ci/deploy.sh rename_linux_wheels dist
+        run: ci/deploy.sh build_pyfury
+      - name: Upload wheel
+        uses: actions/upload-artifact@v3
+        with:
+          name: wheels
+          path: dist/*.whl
+
+  publish-wheels:
+    name: Publish Wheels to PyPI
+    runs-on: ubuntu-latest
+    needs: build-wheels
+    steps:
+      - name: Download wheels from all platforms
+        uses: actions/download-artifact@v3
+        with:
+          name: wheels
+          path: dist
       - name: Publish wheel to PyPI
         uses: pypa/gh-action-pypi-publish@release/v1
         with:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to