Skip to content

Commit

Permalink
Replace Version in Source Files
Browse files Browse the repository at this point in the history
  • Loading branch information
akbog committed Jul 16, 2024
1 parent 8ed309b commit c03a513
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/step.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ jobs:
python -m pip install --upgrade setuptools twine
python -m pip --version
- name: "Replace Version In Source Code"
run: |
sed -i "s/^SDF_CLI_VERSION = \".*\"/SDF_CLI_VERSION = \"${{ github.event.inputs.versionNumber }}\"/" sdf_cli/version.py
- name: "Build Distributions"
run: python setup.py sdist

Expand Down
3 changes: 1 addition & 2 deletions sdf_cli/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
import os
SDF_CLI_VERSION = os.getenv('SDF_CLI_VERSION', '0.0.0')
SDF_CLI_VERSION = "1!0+dev"

0 comments on commit c03a513

Please sign in to comment.