Skip to content

Commit f701d9b

Browse files
author
Frank Odom
committed
Set env variable for current version, determined through the Git release tag
1 parent 99c6b29 commit f701d9b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
pip install build
3030
3131
- name: Build Package
32+
env:
33+
FFT_CONV_PYTORCH_VERSION: ${{ github.event.release.tag_name }}
3234
run: python -m build
3335

3436
- name: Publish to PyPI

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
def get_version_tag() -> str:
99
try:
10-
version = os.environ["SMARTML_VERSION"]
10+
version = os.environ["FFT_CONV_PYTORCH_VERSION"]
1111
except KeyError:
1212
version = getoutput("git describe --tags --abbrev=0")
1313

0 commit comments

Comments
 (0)