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 ad50da253af843e5362755c5a6c354681831d6e3
Author: chaokunyang <[email protected]>
AuthorDate: Thu Feb 6 22:02:11 2025 +0800

    fix upload conflict
---
 .github/workflows/release.yaml | 62 +++++++++++++++++++++++++++++-------------
 1 file changed, 43 insertions(+), 19 deletions(-)

diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 87ee9262..1b9590e9 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -24,50 +24,74 @@ on:
 
 jobs:
   build-wheels:
-    name: Build Fury Python Wheel
-    if: github.repository == 'apache/fury'
+    name: Build Wheels
+    runs-on: ${{ matrix.os }}
     strategy:
       matrix:
         python-version: [3.8, 3.9, 3.11, 3.12]
-        os: [ubuntu-latest, macos-13, macos-14, windows-2022]
-    runs-on: ${{ matrix.os }}
+        os: [ubuntu-latest, macos-13, macos-14, windows-2022] # macos-13: x86, 
macos-14: arm64
+
     steps:
       - uses: actions/checkout@v4
       - name: Set up Python ${{ matrix.python-version }}
         uses: actions/setup-python@v5
         with:
           python-version: ${{ matrix.python-version }}
+
       - name: Install bazel
+        if: matrix.os != 'windows-2022'
         shell: bash
-        run: |
-          if [ "$RUNNER_OS" == "Windows" ]; then
-              ci/run_ci.sh install_bazel_windows
-          else
-              ci/run_ci.sh install_bazel
-          fi
+        run: ci/run_ci.sh install_bazel
+
+      - name: Install bazel on Windows
+        if: matrix.os == 'windows-2022'
+        run: ci/run_ci.sh install_bazel_windows
+
       - name: Update version in setup.py
         run: ci/deploy.sh bump_py_version
+
       - name: Build a binary wheel
-        run: ci/deploy.sh build_pyfury
-      - name: Upload wheel
+        run: |
+          ci/deploy.sh build_pyfury
+          ci/deploy.sh rename_linux_wheels dist
+
+      - name: Upload Wheel Artifact
         uses: actions/upload-artifact@v4
         with:
-          name: wheels
+          name: pyfury-wheels-${{ matrix.os }}-${{ matrix.python-version }}
           path: dist/*.whl
 
   publish-wheels:
-    name: Publish Wheels to PyPI
+    name: Publish Wheels
     runs-on: ubuntu-latest
     needs: build-wheels
+
     steps:
-      - name: Download wheels from all platforms
+      - name: Download Wheel Artifacts
         uses: actions/download-artifact@v4
         with:
-          name: wheels
-          path: dist
-      - name: Publish wheel to PyPI
+          name: |
+            pyfury-wheels-ubuntu-latest-3.8
+            pyfury-wheels-ubuntu-latest-3.9
+            pyfury-wheels-ubuntu-latest-3.11
+            pyfury-wheels-ubuntu-latest-3.12
+            pyfury-wheels-macos-13-3.8
+            pyfury-wheels-macos-13-3.9
+            pyfury-wheels-macos-13-3.11
+            pyfury-wheels-macos-13-3.12
+            pyfury-wheels-macos-14-3.8
+            pyfury-wheels-macos-14-3.9
+            pyfury-wheels-macos-14-3.11
+            pyfury-wheels-macos-14-3.12
+            pyfury-wheels-windows-2022-3.8
+            pyfury-wheels-windows-2022-3.9
+            pyfury-wheels-windows-2022-3.11
+            pyfury-wheels-windows-2022-3.12
+          path: downloaded_wheels/
+
+      - name: Publish Wheels to PyPI
         uses: pypa/gh-action-pypi-publish@release/v1
         with:
           user: __token__
           password: ${{ secrets.PYPI_API_TOKEN }}
-          packages-dir: dist
+          packages-dir: downloaded_wheels/


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

Reply via email to