Skip to content

Commit 01b6b2f

Browse files
author
Jordan Mance
committed
Fixing build, improving version parsing
1 parent 6a415fc commit 01b6b2f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/deploy-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Prep Release
3636
id: prep
3737
run: |
38-
cd cli
38+
cd src
3939
# Parse version
4040
VERSION=$(./scripts/get_version.sh)
4141
echo "Setting release version to $VERSION"

src/scripts/get_version.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
4+
5+
cat "$SCRIPTPATH/../setup.py"| grep -E "VERSION\s+=\s+" | sed -E "s#.*([0-9]+.[0-9]+.[0-9]+[a-zA-Z]?).*#\1#g"

0 commit comments

Comments
 (0)