From 5d59acd1f4ffd80a93dab71ec5dce972e59f8f0e Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Tue, 20 Aug 2024 11:40:07 -0700 Subject: [PATCH] Stop pushing deprecated khoj-assistant package to pypi - Also skip uploading package version to it already exists on pypi This happens when a release is new khoj tagged release is created --- .github/workflows/pypi.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 717ff7bf..b988b034 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -58,12 +58,7 @@ jobs: export SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) rm -rf dist - # Build PyPI Package: khoj - pipx run build - - # Build legacy PyPI Package: khoj-assistant - sed -i.bak '/^name = "khoj"$/s//name = "khoj-assistant"/' pyproject.toml - rm pyproject.toml.bak + # Build PyPI Package pipx run build - name: 🌡️ Validate Python Package @@ -78,6 +73,8 @@ jobs: name: khoj path: dist/khoj-*.whl - - name: 📦 Publish Python Packages to PyPI + - name: 📦 Publish Python Package to PyPI if: startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/master' uses: pypa/gh-action-pypi-publish@v1.8.14 + with: + skip-existing: true