added version from wheel
This commit is contained in:
@@ -28,10 +28,13 @@ jobs:
|
||||
plugins: "poetry-dynamic-versioning"
|
||||
repository_name: "scraibe"
|
||||
repository_url: "https://test.pypi.org/legacy/"
|
||||
- name: Get the version
|
||||
- name: Get the version from wheel
|
||||
run: |
|
||||
echo "SCRAIBE_VERSION=$(python -c 'import scraibe; print(scraibe.__version__)')" >> $GITHUB_ENV
|
||||
echo "SCRAIBE_VERSION=$SCRAIBE_VERSION"
|
||||
WHEEL_FILE=$(find dist -name "*.whl" | head -n 1)
|
||||
VERSION=$(python -c "from pkginfo import Wheel; w = Wheel('$WHEEL_FILE'); print(w.version)")
|
||||
echo "SCRAIBE_VERSION=$VERSION" >> $GITHUB_ENV
|
||||
echo "SCRAIBE_VERSION=$VERSION"
|
||||
|
||||
- name: 'Upload Artifact'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user