From 640ed6c2346259b93351c7707805f4768d5d43ce Mon Sep 17 00:00:00 2001 From: Feramance Date: Fri, 1 Sep 2023 08:51:44 +0200 Subject: [PATCH] [patch] Updated workflow to include pypi release --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ setup.cfg | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01a97ea4..60de15fe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -149,6 +149,31 @@ jobs: commit_author: ${{ steps.import_gpg.outputs.name }} <${{ steps.import_gpg.outputs.email }}> outputs: RELEASE_HASH: ${{ steps.git_hash.outputs.HASH }} + publish: + name: Publish to PyPi + if: contains(needs.bump_version.outputs.NEW_RELEASE, 'beta') == false && contains(needs.bump_version.outputs.NEW_RELEASE, 'alpha') == false + needs: [bump_version, release_hash] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + ref: master + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.x + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build wheel + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: Feramance + password: ${{ secrets.PYPI_API_TOKEN }} package: name: Build Binaries needs: [bump_version, release_hash] diff --git a/setup.cfg b/setup.cfg index ac619455..7bc5a6f3 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [metadata] -name = qBitrr +name = qBitrr2 version = 3.7.0 description = A simple script to monitor Qbit and communicate with Radarr and Sonarr long_description = file: README.md