Publish PyPi Package #4
This file contains 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
# Publishes the OpenHands PyPi package | |
name: Publish PyPi Package | |
# Triggered manually | |
on: | |
workflow_dispatch: | |
inputs: | |
reason: | |
description: 'Reason for manual trigger' | |
required: true | |
default: '' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install Poetry | |
uses: snok/[email protected] | |
with: | |
virtualenvs-in-project: true | |
virtualenvs-path: ~/.virtualenvs | |
- name: Install Poetry Dependencies | |
run: poetry install --no-interaction --no-root | |
- name: Build poetry project | |
run: poetry build -v | |
- name: publish | |
run: poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }} |