Skip to content

Commit

Permalink
fix: missing long_description content_type in setup.py (#279)
Browse files Browse the repository at this point in the history
* ci: check release process in pull requests

* fix: missing long_description content_type in setup.py

* ci: smaller release workflow name
  • Loading branch information
jooola authored Aug 8, 2023
1 parent 344c955 commit 6d79d1d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: Release Python Package
name: Release

on:
push:
branches: [main]
pull_request:
release:
types: [created]

jobs:
deploy:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -21,7 +24,11 @@ jobs:
- name: Build
run: python3 -m build

- name: Check
run: twine check dist/*

- name: Publish
if: github.event_name == 'release'
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
keywords="hcloud hetzner cloud",
description="Official Hetzner Cloud python library",
long_description=readme,
long_description_content_type="text/markdown",
author="Hetzner Cloud GmbH",
author_email="[email protected]",
url="https://github.com/hetznercloud/hcloud-python",
Expand Down

0 comments on commit 6d79d1d

Please sign in to comment.