Skip to content

Commit c0f2979

Browse files
GH-18: Configure build and publish workflow (GH-46)
1 parent 4fb8764 commit c0f2979

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/publish.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
deploy:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Python
15+
uses: actions/setup-python@v3
16+
with:
17+
python-version: '3.x'
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install setuptools wheel twine
22+
- name: Build and publish
23+
env:
24+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
25+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
26+
run: |
27+
python setup.py sdist bdist_wheel
28+
twine upload dist/*

setup.cfg

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
[metadata]
22
name = thumbnails
3+
version = attr: thumbnails.__version__
4+
author = Artyom Vancyan
5+
author_email = [email protected]
6+
description = Video thumbnail generator for modern web video players
7+
long_description = file: README.md
8+
long_description_content_type = text/markdown
9+
url = https://github.com/pysnippet/thumbnails
10+
keywords =
11+
vtt
12+
json
13+
thumbnails
14+
thumbnail-generator
15+
license = Apache 2.0
16+
license_file = LICENSE
317
platforms = unix, linux, osx, win32
418
classifiers =
519
License :: OSI Approved :: Apache Software License

0 commit comments

Comments
 (0)