From d27051f3ee6576d63d15793ae441c1e3515e79e9 Mon Sep 17 00:00:00 2001 From: Andrey Lepekhin <35651221+andrey-lepekhin@users.noreply.github.com> Date: Thu, 21 Dec 2023 17:19:40 +0300 Subject: [PATCH] added poetry publish aftion after github release (#24) Co-authored-by: Andrey Lepekhin --- .github/workflows/publish.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..5e66056 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,16 @@ +name: Publish to PyPI + +on: + release: + types: [published] + +jobs: + publish-to-pypi: + name: Build and Publish to PyPI + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build and publish to pypi + uses: JRubics/poetry-publish@v1.17 + with: + pypi_token: ${{ secrets.PYPI_TOKEN }}