Skip to content

Commit 14741e3

Browse files
committed
Add publishing CI
1 parent 3204680 commit 14741e3

3 files changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
name: Upload Python Package
3+
4+
on:
5+
release:
6+
types: [published]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
deploy:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Python
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: '3.11'
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install build
26+
- name: Build package
27+
run: python -m build
28+
- name: Publish package
29+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
30+
with:
31+
user: __token__
32+
password: ${{ secrets.PYPI_API_TOKEN }}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
---
66
Python package to download/filter any release assets from the latest compatible version.
77

8+
## Installation
9+
```cmd
10+
pip install github_release_downloader
11+
```
12+
813
## Usage
914

1015
This tool can be used as library:

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,18 @@ description = "Package to download any release assets from the latest compatible
1010
requires-python = ">=3.7"
1111
keywords = ["github", "release", "download", "asset", "downloader"]
1212
license = {text = "MIT license"}
13+
readme = "README.md"
1314
classifiers = [
1415
"Programming Language :: Python :: 3",
1516
"Programming Language :: Python :: 3.7",
1617
"Programming Language :: Python :: 3.8",
1718
"Programming Language :: Python :: 3.9",
1819
"Programming Language :: Python :: 3.10",
1920
"Programming Language :: Python :: 3.11",
21+
"Intended Audience :: Developers",
22+
"Natural Language :: English",
23+
"Programming Language :: Python :: Implementation :: CPython",
24+
"Topic :: Software Development :: Libraries :: Python Modules"
2025
]
2126
[options.entry_points]
2227
console_scripts = {github_release_downloader = "github_release_downloader:__main__"}

0 commit comments

Comments
 (0)