[fix] Fix pypi url #16
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Upload Release package | |
| on: | |
| push: | |
| tags: | |
| - '[0-9]+.[0-9]+.[0-9]+' | |
| - 'v[0-9]+.[0-9]+.[0-9]+' | |
| jobs: | |
| deploy: | |
| name: Upload to PyPI (ubuntu) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.9' | |
| - name: Install Python dependencies | |
| run: python -m pip install --upgrade pip build setuptools | |
| - name: Build dist | |
| run: python -m build | |
| - name: Publish package to TestPyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| verbose: true | |
| password: ${{ secrets.TESTPYPI_TOKEN }} | |
| repository-url: https://test.pypi.org/legacy/ | |
| attestations: false | |
| - name: Check test pypi package | |
| run: | | |
| pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ langchain-reindexer | |
| - name: Publish package to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| verbose: true | |
| password: ${{ secrets.PYPI_TOKEN }} | |
| attestations: false |