pypi-release.yml 823 B

12345678910111213141516171819202122232425262728293031
  1. # Publishes the OpenHands PyPi package
  2. name: Publish PyPi Package
  3. # Triggered manually
  4. on:
  5. workflow_dispatch:
  6. inputs:
  7. reason:
  8. description: 'Reason for manual trigger'
  9. required: true
  10. default: ''
  11. jobs:
  12. release:
  13. runs-on: ubuntu-latest
  14. steps:
  15. - uses: actions/checkout@v4
  16. - uses: actions/setup-python@v5
  17. with:
  18. python-version: 3.11
  19. - name: Install Poetry
  20. uses: snok/install-poetry@v1.4.1
  21. with:
  22. virtualenvs-in-project: true
  23. virtualenvs-path: ~/.virtualenvs
  24. - name: Install Poetry Dependencies
  25. run: poetry install --no-interaction --no-root
  26. - name: Build poetry project
  27. run: poetry build -v
  28. - name: publish
  29. run: poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }}