From 593e7f8d62bc3a84741aa3d2959a82f31bfcdba1 Mon Sep 17 00:00:00 2001 From: korikuzma Date: Fri, 4 Feb 2022 11:01:13 -0500 Subject: [PATCH] Automate pypi release --- .github/workflows/release.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..3c569ead --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,24 @@ +name: Upload Python Package + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - name: Install dependencies + run: | + python3 -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI }} + run: | + python3 setup.py sdist bdist_wheel + twine upload dist/*