Skip to content

Commit

Permalink
✨ NEW: Added publish action in CI #21
Browse files Browse the repository at this point in the history
  • Loading branch information
AakashGfude authored Mar 15, 2021
1 parent f1f6793 commit 93c8010
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,25 @@ jobs:
flags: pytests
file: ./coverage.xml
fail_ci_if_error: true

publish:
name: Publish to PyPi
needs: [pre-commit, tests]
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Build package
run: |
pip install wheel
python setup.py sdist bdist_wheel
- name: Publish
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_KEY }}

0 comments on commit 93c8010

Please sign in to comment.