Skip to content

Commit ad852c1

Browse files
committed
add action to publish on tag
1 parent aca9e36 commit ad852c1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,13 @@ jobs:
4949
5050
- name: Test linting with flake8
5151
run: flake8 --max-line-length=127
52+
53+
publish:
54+
runs-on: ubuntu-latest
55+
needs: [tests, linting]
56+
steps:
57+
- name: Publish package
58+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
59+
uses: pypa/gh-action-pypi-publish@release/v1
60+
with:
61+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)