From 8bc9f0fb04ad2201b1bc54ba22c50cbc3b75bc0e Mon Sep 17 00:00:00 2001 From: jansturm1 Date: Sun, 7 Jul 2024 19:37:12 +0200 Subject: [PATCH] github actions --- .github/workflows/publish-to-pypi.yml | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/publish-to-pypi.yml diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml new file mode 100644 index 0000000..83b98a8 --- /dev/null +++ b/.github/workflows/publish-to-pypi.yml @@ -0,0 +1,30 @@ +name: Publish to StreamStoryPyClient PyPI + +on: + release: + types: [created] + +jobs: + build-and-publish: + name: Build and publish StreamStoryPyClient to PyPI + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: Install poetry + run: pip install poetry + + - name: Build and publish + env: + PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + run: | + poetry config pypi-token.pypi $PYPI_API_TOKEN + poetry build + poetry publish