Skip to content

Commit

Permalink
Publish package to PyPI when release is created on Github (#21)
Browse files Browse the repository at this point in the history
* github action for upload to pypi when released

* blog and website link change in comments

* version fixed in __init__.py
  • Loading branch information
gaborvecsei authored Oct 22, 2020
1 parent 06d64e4 commit 5310586
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish Color-Tracker to PyPI when a release is created

on:
release:
types: [published]

jobs:
build-package-and-publish:
name: Publish Color-Tracker to PyPI
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Build the package
run: python setup.py sdist bdist_wheel
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ If you feel like it is a **useful package** and it **saved you time and effor**,
Gábor Vecsei

- [Website](https://gaborvecsei.com)
- [Personal Blog](https://gaborvecsei.wordpress.com/)
- [Personal Blog](https://gaborvecsei.com)
- [LinkedIn](https://www.linkedin.com/in/gaborvecsei)
- [Twitter](https://twitter.com/GAwesomeBE)
- [Github](https://github.com/gaborvecsei)
Expand Down
6 changes: 3 additions & 3 deletions color_tracker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Color Tracker
*
* Gabor Vecsei
* Website: gaborvecsei.com
* Blog: https://gaborvecsei.wordpress.com/
* Website: https://gaborvecsei.com
* Blog: https://gaborvecsei.com
* LinkedIn: https://www.linkedin.com/in/gaborvecsei
* Github: https://github.com/gaborvecsei
*
Expand All @@ -16,4 +16,4 @@
from .utils.camera import WebCamera

__author__ = "Gabor Vecsei"
__version__ = "0.0.4"
__version__ = "0.1.1"
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Color Tracker
*
* Gabor Vecsei
* Website: gaborvecsei.com
* Blog: https://gaborvecsei.wordpress.com/
* Website: https://gaborvecsei.com
* Blog: https://gaborvecsei.com
* LinkedIn: https://www.linkedin.com/in/gaborvecsei
* Github: https://github.com/gaborvecsei
*
Expand Down

0 comments on commit 5310586

Please sign in to comment.