Skip to content

Commit

Permalink
add action to publish on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
willforde committed Nov 2, 2022
1 parent aca9e36 commit ad852c1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,13 @@ jobs:
- name: Test linting with flake8
run: flake8 --max-line-length=127

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

0 comments on commit ad852c1

Please sign in to comment.