Skip to content

Commit 62fd5b4

Browse files
committed
ci(tests): Publish to PyPI
1 parent 8c45928 commit 62fd5b4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/tests.yml

+12
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,15 @@ jobs:
103103
- uses: codecov/codecov-action@v2
104104
with:
105105
token: ${{ secrets.CODECOV_TOKEN }}
106+
107+
- name: Build package
108+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
109+
run: poetry build
110+
111+
- name: Publish package
112+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
113+
uses: pypa/gh-action-pypi-publish@release/v1
114+
with:
115+
user: __token__
116+
password: ${{ secrets.PYPI_API_TOKEN }}
117+
skip_existing: true

0 commit comments

Comments
 (0)