mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
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
This commit is contained in:
parent
f6ce2fd432
commit
5d59acd1f4
1 changed files with 4 additions and 7 deletions
11
.github/workflows/pypi.yml
vendored
11
.github/workflows/pypi.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue