Skip to content

Commit

Permalink
setting version via tag
Browse files Browse the repository at this point in the history
  • Loading branch information
erickmartins committed Feb 15, 2022
1 parent c515ced commit 462e54e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/upload_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
pip install setuptools wheel twine
- name: Package and Upload
env:
STACKMANAGER_VERSION: ${{ github.event.release.tag_name }}
VERSION: ${{ github.event.release.tag_name }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upload_to_test_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
pip install setuptools wheel twine
- name: Package and Upload
env:
STACKMANAGER_VERSION: ${{ github.event.release.tag_name }}
VERSION: ${{ github.event.release.tag_name }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import setuptools
import os

with open("README.md", "r") as fh:
long_description = fh.read()

setuptools.setup(
name="ezomero",
version="1.0.1",
version=os.environ.get('VERSION', '0.0.0'),
maintainer="Dave Mellert",
maintainer_email="Dave.Mellert@jax.org",
description=("A suite of convenience functions for working"
Expand Down

0 comments on commit 462e54e

Please sign in to comment.