new github action - push new tag to pypi #35

Closed
opened 2026-02-16 01:15:18 -05:00 by yindo · 1 comment
Owner

Originally created by @styk-tv on GitHub (Jul 4, 2024).

@logan-markewich your last tag version 0.0.4 didn't make it to pypi. It would be great to add autobuild and autopush on tag in main. Perhaps some variation of the below?

      - name: Install Poetry
        run: curl -sSL https://install.python-poetry.org | python3 -

      - name: Install dependencies
        run: poetry install
        
      - name: Build package
        run: poetry build
        
      - name: Install twine
        run: pip install twine                

      - name: Publish to PyPI
        if: github.event_name == 'push' && github.ref == 'refs/heads/main' && startsWith(github.ref, 'refs/tags/')
        env:
          TWINE_USERNAME: __token__
          TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
        run: twine upload --verbose dist/*
Originally created by @styk-tv on GitHub (Jul 4, 2024). @logan-markewich your last tag version 0.0.4 didn't make it to pypi. It would be great to add autobuild and autopush on tag in main. Perhaps some variation of the below? ``` - name: Install Poetry run: curl -sSL https://install.python-poetry.org | python3 - - name: Install dependencies run: poetry install - name: Build package run: poetry build - name: Install twine run: pip install twine - name: Publish to PyPI if: github.event_name == 'push' && github.ref == 'refs/heads/main' && startsWith(github.ref, 'refs/tags/') env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} run: twine upload --verbose dist/* ```
yindo closed this issue 2026-02-16 01:15:18 -05:00
Author
Owner

@logan-markewich commented on GitHub (Jul 4, 2024):

Yea I know, I need to copy the GitHub action llama-index uses.

Published https://pypi.org/project/llama-agents/

@logan-markewich commented on GitHub (Jul 4, 2024): Yea I know, I need to copy the GitHub action `llama-index` uses. Published https://pypi.org/project/llama-agents/
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_deploy#35