From 0936b6157e0c686736ab566067a1f8488562ea1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C5=9F=C4=B1k=20Kaplan?= Date: Wed, 16 Oct 2024 16:07:09 +0300 Subject: [PATCH] publish yaml --- .github/workflows/publish.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..2c04c9e --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,33 @@ +name: Publish + +on: + push: + branches: + - master + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.12' + + - name: Install build tools + run: | + python -m pip install --upgrade pip setuptools wheel + + - name: Build package + run: | + python setup.py sdist bdist_wheel + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@v1.0.0 + with: + username: __token__ + password: ${{ secrets.PYPI_TOKEN }} + packages-dir: dist