Skip to content

Commit

Permalink
[patch] Updated workflow to include pypi release
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Sep 1, 2023
1 parent 682cf8a commit 640ed6c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 640ed6c

Please sign in to comment.