Skip to content

Commit

Permalink
Deploying to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
Inaruslynx committed Jan 19, 2021
1 parent e921db4 commit a42209b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,17 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
- name: Build and publish Test
env:
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload --repository testpypi dist/*
- name: Build and publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="SmtApi", # Replace with your own username
version="v0.1.3-alpha",
version="v0.1.4-alpha",
author="Joshua Edwards",
author_email="[email protected]",
description="An API for SmartMeterTexas",
Expand Down

0 comments on commit a42209b

Please sign in to comment.