Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b12da27

Browse files
committed
Publish to pypi only on tagged release
1 parent 516c805 commit b12da27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ jobs:
2828
python -m pip install --upgrade pip
2929
pip install build
3030
- name: Build package
31-
run: python -m build
31+
run: python -m build --sdist --wheel --outdir dist/
3232
- name: Publish package
33+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
3334
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
3435
with:
3536
user: __token__

0 commit comments

Comments
 (0)