chaokunyang commented on code in PR #2532:
URL: https://github.com/apache/fory/pull/2532#discussion_r2302731446


##########
.github/workflows/build-native-release.yml:
##########
@@ -45,13 +45,25 @@ jobs:
       - name: Build wheel
         shell: bash
         run: ./ci/deploy.sh build_pyfory
+        env:
+          GITHUB_REF_NAME: ${{ github.ref_name }}
       - name: Install and verify wheel
         shell: bash
         run: |
           python -m pip install --upgrade pip
           pip install dist/*.whl
-          python -c "import pyfory; print(pyfory.__version__)"
-      - name: Upload artifacts
+          INSTALLED_VERSION=$(python -c "import pyfory; 
print(pyfory.__version__)")
+          echo "Installed version: $INSTALLED_VERSION"
+          # Verify version matches the tag (strip leading 'v' if present)
+          EXPECTED_VERSION="${{ github.ref_name }}"
+          EXPECTED_VERSION=${EXPECTED_VERSION#v}

Review Comment:
   this version seems not right too, maybe need same logic to replace 
`-alpha/beta/rc`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to