From e03bda523c5821bea33a56304f39f7fdc33ab434 Mon Sep 17 00:00:00 2001 From: Helge Hecht Date: Wed, 27 Apr 2022 17:15:51 +0200 Subject: [PATCH] Create publish_pypi.yaml --- .github/workflows/publish_pypi.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/publish_pypi.yaml diff --git a/.github/workflows/publish_pypi.yaml b/.github/workflows/publish_pypi.yaml new file mode 100644 index 0000000..e971d81 --- /dev/null +++ b/.github/workflows/publish_pypi.yaml @@ -0,0 +1,25 @@ +name: Publish to PyPI + +on: + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + python setup.py sdist bdist_wheel + - name: Publish package + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }}