Skip to content

Commit 6d79d1d

Browse files
authored
fix: missing long_description content_type in setup.py (#279)
* ci: check release process in pull requests * fix: missing long_description content_type in setup.py * ci: smaller release workflow name
1 parent 344c955 commit 6d79d1d

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
name: Release Python Package
1+
name: Release
22

33
on:
4+
push:
5+
branches: [main]
6+
pull_request:
47
release:
58
types: [created]
69

710
jobs:
8-
deploy:
11+
build:
912
runs-on: ubuntu-latest
1013
steps:
1114
- uses: actions/checkout@v3
@@ -21,7 +24,11 @@ jobs:
2124
- name: Build
2225
run: python3 -m build
2326

27+
- name: Check
28+
run: twine check dist/*
29+
2430
- name: Publish
31+
if: github.event_name == 'release'
2532
env:
2633
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2734
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
keywords="hcloud hetzner cloud",
1616
description="Official Hetzner Cloud python library",
1717
long_description=readme,
18+
long_description_content_type="text/markdown",
1819
author="Hetzner Cloud GmbH",
1920
author_email="support-cloud@hetzner.com",
2021
url="https://github.com/hetznercloud/hcloud-python",

0 commit comments

Comments
 (0)