Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
devanshshukla99 committed May 21, 2021
1 parent d6a9adf commit 15de897
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
name: PyPI Release

on:
push:
branches: [ main ]
release:
types: [created]

Expand All @@ -26,9 +24,8 @@ jobs:
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
python -m twine upload --repository testpypi dist/*
twine upload dist/*
python -m twine upload dist/*

0 comments on commit 15de897

Please sign in to comment.