Skip to content

Commit

Permalink
try reading dynamic version of version in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jiakf committed Apr 1, 2024
1 parent ecfcce9 commit 2413b0a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bin/package
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,13 @@ pip install -U PyInstaller
pip install --upgrade setuptools

# Get version
VERSION=$(python -c "
import gdc_client.version
print(gdc_client.version.__version__)")
# VERSION=$(python -c "
# import gdc_client.version
# print(gdc_client.version.__version__)")
VERSION=$(python -c '
from importlib.metadata import version
print("gdc-client")
')

echo "Creating ${TARGET_ENVIRONMENT} package for version ${VERSION}..."

Expand Down

0 comments on commit 2413b0a

Please sign in to comment.