From a0324ffcec8b72feb3d0ba61773cbe6c7d9a028b Mon Sep 17 00:00:00 2001 From: Mike Casale <46603283+mikewcasale@users.noreply.github.com> Date: Sat, 14 Dec 2024 12:27:05 -0800 Subject: [PATCH] ci: clean dist directory before building --- .github/workflows/publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ffc2e9b..6a0f56c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -23,8 +23,10 @@ jobs: python -m pip install --upgrade pip pip install build twine - - name: Build package - run: python -m build + - name: Clean and Build package + run: | + rm -rf dist/ + python -m build - name: Publish to PyPI env: