From eb91f793b4851d83577e5fc6015708a51354dc61 Mon Sep 17 00:00:00 2001 From: Unrud Date: Tue, 19 May 2020 03:25:23 +0200 Subject: [PATCH] Add PyPI publish workflow --- .github/workflows/pypi-publish.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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 000000000..a3588c619 --- /dev/null +++ b/.github/workflows/pypi-publish.yml @@ -0,0 +1,23 @@ +name: PyPI publish +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.x + - name: Install dependencies + run: python -m pip install wheel + - name: Build + run: python setup.py sdist bdist_wheel + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.pypi_password }}