Skip to content

Commit

Permalink
strip v from version
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Oct 31, 2024
1 parent a5acf0b commit 11049c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ jobs:
- name: Prepare script with version
if: startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
run: |
echo "Building with version ${GITHUB_REF#refs/tags/}"
sed -i "s/__version__ = \"0.0.0\"/__version__ = \"${GITHUB_REF#refs/tags/}\"/" sb.py
VERSION=${GITHUB_REF#refs/tags/v}
echo "Building with version ${VERSION}"
sed -i "s/__version__ = \"0.0.0\"/__version__ = \"${VERSION}\"/" sb.py
- name: Compile binary
run: ./venv/bin/python -m nuitka sb.py --onefile -o sb && chmod +x sb
Expand Down

0 comments on commit 11049c5

Please sign in to comment.