diff options
author | S. Solomon Darnell | 2025-03-28 21:52:21 -0500 |
---|---|---|
committer | S. Solomon Darnell | 2025-03-28 21:52:21 -0500 |
commit | 4a52a71956a8d46fcb7294ac71734504bb09bcc2 (patch) | |
tree | ee3dc5af3b6313e921cd920906356f5d4febc4ed /R2R/.github/workflows/publish-to-pypi.yml | |
parent | cc961e04ba734dd72309fb548a2f97d67d578813 (diff) | |
download | gn-ai-master.tar.gz |
Diffstat (limited to 'R2R/.github/workflows/publish-to-pypi.yml')
-rwxr-xr-x | R2R/.github/workflows/publish-to-pypi.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/R2R/.github/workflows/publish-to-pypi.yml b/R2R/.github/workflows/publish-to-pypi.yml new file mode 100755 index 00000000..79ac0c83 --- /dev/null +++ b/R2R/.github/workflows/publish-to-pypi.yml @@ -0,0 +1,27 @@ +name: Publish to PyPI + +on: + push: + tags: + - "*" + workflow_dispatch: # This line adds manual trigger support + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + + - name: Install poetry + run: pip install poetry + + - name: Build and publish + run: | + poetry build + poetry publish --username __token__ --password ${{ secrets.PYPI_API_TOKEN }} |