Skip to content

Commit

Permalink
Merge pull request #43 from jaimebuelta/add_gh_action
Browse files Browse the repository at this point in the history
Add publish step for tags
  • Loading branch information
jaimebuelta committed Jan 20, 2022
2 parents dac5866 + e21fbc3 commit 7a3e126
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,16 @@ jobs:
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true


publish:
needs: coveralls_finish

runs-on: ubuntu-latest
steps:
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 7a3e126

Please sign in to comment.