diff options
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 }} |