mirror of
https://github.com/cryptoadvance/specter-desktop.git
synced 2026-08-13 12:33:29 +02:00
fix: derive pip version from git tag instead of setuptools_scm (#2573)
Co-authored-by: Nazim <nazim@openclaw.ai>
This commit is contained in:
parent
bc58dfab2a
commit
9d83b3a620
1 changed files with 7 additions and 1 deletions
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
|
@ -32,7 +32,13 @@ jobs:
|
|||
run: pip install build==0.10.0
|
||||
|
||||
- name: Build package
|
||||
run: python3 -m build
|
||||
run: |
|
||||
# Derive PEP 440 version from git tag (pre→rc mapping)
|
||||
# Avoids setuptools_scm picking wrong tag when multiple tags share a commit
|
||||
VERSION=${GITHUB_REF#refs/tags/v}
|
||||
PEP_VERSION=$(echo "$VERSION" | sed 's/-pre/rc/')
|
||||
echo "Building version: $PEP_VERSION"
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION=$PEP_VERSION python3 -m build
|
||||
|
||||
- name: Upload pip artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue