From 6fed35a2b91cf1f74871600e9a7120984884f4d3 Mon Sep 17 00:00:00 2001 From: "dries.k" Date: Tue, 2 Aug 2022 11:32:50 +0200 Subject: [PATCH] upload to pypi in release action --- .github/workflows/build.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ec7d824..235da2e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -120,3 +120,24 @@ jobs: gotify-tray_amd64_debian_bullseye.deb gotify-tray_amd64_debian_bookworm.deb gotify-tray.dmg + + pypi: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.9.5' + - name: Upgrade pip and enable wheel support + run: python -m pip install --upgrade pip setuptools wheel + - name: install requirements + run: | + pip install -r requirements.txt + pip install build + - name: create pip package + run: python -m build + - name: upload to pypi + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }}