~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix: Secure PyPI publish workflow with isolated frontend build
LearningCircuit7706be65b6ab
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.ymlindex bff9ef8b7a..551f6da540 100644--- a/.github/workflows/publish.yml+++ b/.github/workflows/publish.yml@@ -5,44 +5,106 @@ on:types: [created]jobs:- deploy:+ # Build frontend if package.json exists (isolated, no secrets)+ build-frontend:runs-on: ubuntu-latest- environment: release+ outputs:+ has-frontend: ${{ steps.check.outputs.has-frontend }}+ container:+ image: node:20-alpine+ options: --user 1001 --network nonepermissions:- id-token: write+ contents: readsteps:- uses: actions/checkout@v5- with:- fetch-depth: 0- - name: Set up Python- uses: actions/setup-python@v5- with:- python-version: '3.12'+ - name: Check for frontend assets+ id: check+ run: |+ if [ -f "src/local_deep_research/web/package.json" ]; then+ echo "has-frontend=true" >> $GITHUB_OUTPUT+ echo "Found package.json - will build frontend"+ else+ echo "has-frontend=false" >> $GITHUB_OUTPUT+ echo "No package.json - skipping frontend build"+ fi++ - name: Build frontend+ if: steps.check.outputs.has-frontend == 'true'+ run: |+ cd src/local_deep_research/web+ npm ci --ignore-scripts --no-audit --no-fund+ npm run build --ignore-scripts 2>/dev/null || true+ echo '{"status":"complete","built":"$(date -Iseconds)"}' > static/.frontend-built- - name: Set up PDM- uses: pdm-project/setup-pdm@v4+ - name: Upload frontend artifacts+ if: steps.check.outputs.has-frontend == 'true'+ uses: actions/upload-artifact@v4with:- python-version: '3.12'+ name: frontend-assets+ path: src/local_deep_research/web/static/+ retention-days: 1++ # Build Python package (isolated, no PyPI access)+ build-package:+ needs: build-frontend+ runs-on: ubuntu-latest+ container:+ image: python:3.12-slim+ permissions:+ contents: read++ steps:+ - uses: actions/checkout@v5- - name: Install system dependencies for SQLCipher+ - name: Install build dependenciesrun: |- sudo apt-get update- sudo apt-get install -y libsqlcipher-dev+ apt-get update && apt-get install -y libsqlcipher-dev build-essential+ pip install pdm- - name: Build package+ - name: Download frontend artifacts+ if: needs.build-frontend.outputs.has-frontend == 'true'+ uses: actions/download-artifact@v4+ continue-on-error: true+ with:+ name: frontend-assets+ path: src/local_deep_research/web/static/++ - name: Build Python packagerun: pdm build- - name: List distribution files- run: ls -l dist/+ - name: Upload package+ uses: actions/upload-artifact@v4+ with:+ name: python-dist+ path: dist/+ retention-days: 1++ # Publish (ONLY job with PyPI access)+ publish:+ needs: build-package+ runs-on: ubuntu-latest+ environment: release+ permissions:+ id-token: write++ steps:+ - name: Download package+ uses: actions/download-artifact@v4+ with:+ name: python-dist+ path: dist/++ - name: List packages+ run: ls -lh dist/- - name: Publish to Test PyPI for pre-releases+ - name: Publish to Test PyPIif: github.event.release.prerelease == trueuses: pypa/gh-action-pypi-publish@release/v1with:repository-url: https://test.pypi.org/legacy/- - name: Publish to PyPI for full releases+ - name: Publish to PyPIif: github.event.release.prerelease == falseuses: pypa/gh-action-pypi-publish@release/v1