diff --git a/.github/workflows/poetry.yml b/.github/workflows/poetry.yml new file mode 100644 index 0000000..a2caaf9 --- /dev/null +++ b/.github/workflows/poetry.yml @@ -0,0 +1,29 @@ +name: Upload Python Package + +on: + release: + types: [published] + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Publish python poetry package + # You may pin to the exact commit or the version. + # uses: JRubics/poetry-publish@0f571e7f0320737205a74472dbd089c1263e171f + uses: JRubics/poetry-publish@v1.10 + with: + # API token to authenticate when uploading package to PyPI (https://pypi.org/manage/account/) or TestPyPI (https://test.pypi.org/manage/account/) + pypi_token: ${{ secrets.PYPI_TOKEN }} + ignore_dev_requirements: true