Skip to content

Commit 395b9e4

Browse files
committed
Delete built packages before publishing
1 parent c86a376 commit 395b9e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/workflow-package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ jobs:
102102
if [[ "$TAG" != "$PROJECT_VERSION" ]]; then exit 1; fi
103103
104104
- name: Build and publish (dry-run)
105-
run: poetry publish --build --dry-run
105+
run: rm -rf dist && poetry publish --build --dry-run
106106

107107
- name: Build and publish
108108
if: startsWith(github.ref, 'refs/tags/')
109109
run: |
110-
poetry publish --build
111-
# poetry publish --build -r test-pypi
110+
rm -rf dist && poetry publish --build
111+
# rm -rf dist && poetry publish --build -r test-pypi

0 commit comments

Comments
 (0)