Building AI agents, atomically
fix(release): clean dist/ before build so only the new version is published
KennyVaneetvelde8052c11abf5c
diff --git a/build_and_deploy.ps1 b/build_and_deploy.ps1index 60dccb5..21cdd4f 100644--- a/build_and_deploy.ps1+++ b/build_and_deploy.ps1@@ -190,6 +190,7 @@ if ($dryRun) {Write-Host "[DRY RUN] Would perform the following actions:"Write-Host "[DRY RUN] - Build consolidated atomic-agents package"Write-Host "[DRY RUN] - Install dependencies with uv sync"+ Write-Host "[DRY RUN] - Clean stale artifacts from dist directory"Write-Host "[DRY RUN] - Build package with uv build"Write-Host "[DRY RUN] - Configure PyPI token"Write-Host "[DRY RUN] - Upload to PyPI with uv publish"@@ -203,6 +204,12 @@ Write-Host "Building consolidated atomic-agents package..."# Install dependenciesuv sync+# Remove stale artifacts so we only publish the version we just built+if (Test-Path "dist") {+ Write-Host "Cleaning dist directory of stale artifacts..."+ Remove-Item "dist\*" -Recurse -Force+}+# Build the packageuv build