Skip to content

Commit e60b30b

Browse files
committed
ci(tests): Publish to pypi
1 parent 100f238 commit e60b30b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,15 @@ jobs:
9797
- uses: codecov/codecov-action@v2
9898
with:
9999
token: ${{ secrets.CODECOV_TOKEN }}
100+
101+
- name: Build package
102+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
103+
run: poetry build
104+
105+
- name: Publish package
106+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
107+
uses: pypa/gh-action-pypi-publish@release/v1
108+
with:
109+
user: __token__
110+
password: ${{ secrets.PYPI_API_TOKEN }}
111+
skip_existing: true

0 commit comments

Comments
 (0)