From 7e667c6092b354aee9339389c9e0c4f804bb1962 Mon Sep 17 00:00:00 2001 From: Ginger <75683114+GingerIndustries@users.noreply.github.com> Date: Thu, 23 Jun 2022 17:10:46 -0400 Subject: [PATCH] Create poetry.yml --- .github/workflows/poetry.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/poetry.yml 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