From 486780d67976c8e0a6e05e9df6cf9e20d1cdf327 Mon Sep 17 00:00:00 2001 From: Kaziamov Date: Thu, 14 Mar 2024 02:47:03 +0400 Subject: [PATCH] add pypi publish config --- .github/workflows/pypi-publish.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/pypi-publish.yml diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml new file mode 100644 index 0000000..bf88e4c --- /dev/null +++ b/.github/workflows/pypi-publish.yml @@ -0,0 +1,18 @@ +name: Publish Release to PYPI + +on: + push: + branches: + - main + +jobs: + deployment: + runs-on: ubuntu-latest + environment: release + steps: + - name: Build and Publish + uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - run: pip install poetry + - run: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} + - run: poetry publish --build \ No newline at end of file