Skip to content

Commit ff9321b

Browse files
committed
ci(tests): Include publishing to pypi when tagged
1 parent 3bf6342 commit ff9321b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,14 @@ jobs:
3838
- uses: codecov/codecov-action@v2
3939
with:
4040
token: ${{ secrets.CODECOV_TOKEN }}
41+
42+
- name: Build package
43+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
44+
run: poetry build
45+
46+
- name: Publish package
47+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
48+
uses: pypa/gh-action-pypi-publish@release/v1
49+
with:
50+
user: __token__
51+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)