Skip to content

Commit 8216f47

Browse files
authored
Merge pull request amitdev#40 from AndreMiras/feature/pypi_publish_on_tag
👷 Publish to PyPI on tagging, fixes amitdev#23
2 parents a0f0d76 + 85a987d commit 8216f47

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,21 @@ jobs:
3232
- uses: actions/upload-artifact@v3
3333
with:
3434
path: dist/*.tar.gz
35+
36+
pypi_upload:
37+
name: Publish to PyPI
38+
needs: [build_wheels, build_sdist]
39+
runs-on: ubuntu-latest
40+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
41+
steps:
42+
- uses: actions/setup-python@v2
43+
- uses: actions/download-artifact@v3
44+
with:
45+
name: artifact
46+
path: dist
47+
- name: Publish package
48+
uses: pypa/[email protected]
49+
with:
50+
verbose: true
51+
user: __token__
52+
password: ${{ secrets.pypi_password }}

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
version = '1.1.7',
88
description = 'An Dict like LRU container.',
99
long_description = open('README.rst').read(),
10+
long_description_content_type="text/x-rst",
1011
author='Amit Dev',
1112
url='https://github.com/amitdev/lru-dict',
1213
license='MIT',

0 commit comments

Comments
 (0)