From 15f5b5be8393c383fb1a4ca41fd66ef91c41218f Mon Sep 17 00:00:00 2001 From: Nicola Demo Date: Tue, 15 Dec 2020 18:51:12 +0100 Subject: [PATCH] Version 1.1.1 and PyPI action --- .github/workflows/pypi-publish.yml | 31 ++++++++++++++++++++++++++++++ ezyrb/meta.py | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pypi-publish.yml diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml new file mode 100644 index 00000000..9fb5c70a --- /dev/null +++ b/.github/workflows/pypi-publish.yml @@ -0,0 +1,31 @@ +name: "PYPI Publish" + +on: + push: + tags: + - "*" + +jobs: + docs: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + + - name: Install build + run: >- + python -m pip install build --user + + - name: Build a binary wheel and a source tarball + run: >- + python -m build --sdist --wheel --outdir dist/ . + + - name: Publish distribution to PyPI + if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/ezyrb/meta.py b/ezyrb/meta.py index fd3e6f09..f445b1b2 100644 --- a/ezyrb/meta.py +++ b/ezyrb/meta.py @@ -14,7 +14,7 @@ __author__ = "Nicola Demo, Marco Tezzele" __copyright__ = "Copyright 2016-2019, EZyRB contributors" __license__ = "MIT" -__version__ = "1.0" +__version__ = "1.1" __mail__ = 'demo.nicola@gmail.com, marcotez@gmail.com' __maintainer__ = __author__ __status__ = "Stable"