Skip to content

Commit

Permalink
Merge pull request #38 from 3mcloud/feature/27104
Browse files Browse the repository at this point in the history
27104 - Make release version into a usable env var in setup.py
  • Loading branch information
jjf130 authored Mar 5, 2021
2 parents d727814 + 0ed84ed commit 5012139
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Push to PyPi

on:
release:
types: [created]
types: [published]

jobs:
build:
Expand All @@ -22,6 +22,7 @@ jobs:
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
RELEASE_VERSION: ${{ github.event.release.tag_name }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
'''
Setup tools
'''
import re
import subprocess
import os
from setuptools import setup, find_packages

NAME = 'falcano'
VERSION = '0.0.7'
VERSION = os.getenv('RELEASE_VERSION', 'DEV')
AUTHOR = 'Eric Walker'
AUTHOR_EMAIL = 'ewalker3@mmm.com'
DESCRIPTION = 'Falcano'
Expand Down

0 comments on commit 5012139

Please sign in to comment.