Skip to content

Commit a4e0c59

Browse files
authored
Update publish.yml
Updated workflow to remove old builds
1 parent 52e1aed commit a4e0c59

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
pip install build twine
2323
2424
- name: Build package
25-
run: python -m build
25+
run: |
26+
rm -rf dist build *.egg-info
27+
python -m build
2628
2729
- name: Check package
2830
run: twine check dist/*
@@ -31,4 +33,4 @@ jobs:
3133
env:
3234
TWINE_USERNAME: __token__
3335
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
34-
run: twine upload dist/*
36+
run: twine upload --skip-existing dist/*

0 commit comments

Comments
 (0)