diff --git a/.github/workflows/publish_to_pypi.yml b/.github/workflows/publish_to_pypi.yml new file mode 100644 index 0000000..5f21589 --- /dev/null +++ b/.github/workflows/publish_to_pypi.yml @@ -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 }} diff --git a/README.md b/README.md index 47681ed..2d8ab9a 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/color_tracker/__init__.py b/color_tracker/__init__.py index 5d6924a..afc2849 100644 --- a/color_tracker/__init__.py +++ b/color_tracker/__init__.py @@ -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 * @@ -16,4 +16,4 @@ from .utils.camera import WebCamera __author__ = "Gabor Vecsei" -__version__ = "0.0.4" +__version__ = "0.1.1" diff --git a/setup.py b/setup.py index cdcd882..9d1772c 100644 --- a/setup.py +++ b/setup.py @@ -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 *