From aec444a2f369cc4f166d20206725cb20fb59cdcd Mon Sep 17 00:00:00 2001 From: Andreas D Date: Thu, 25 Feb 2021 21:24:16 +0100 Subject: [PATCH] version bump and automatic release on pypi --- .github/workflows/publish-to-pypi.yml | 36 +++++++++++++++++++++++++++ cubrium/__about__.py | 2 +- setup.cfg | 2 +- 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish-to-pypi.yml diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml new file mode 100644 index 0000000..000d11a --- /dev/null +++ b/.github/workflows/publish-to-pypi.yml @@ -0,0 +1,36 @@ +name: Publish Python to PyPI + +on: push + +jobs: + build: + name: Build and publish Python to PyPI + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + architecture: x64 + - name: install pypa/build + run: >- + python -m + pip install + build + --user + - name: build wheel + run: >- + python -m + build + --sdist + --wheel + --outdir dist/ + + - name: publish to pypi + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file diff --git a/cubrium/__about__.py b/cubrium/__about__.py index 3dc1f76..485f44a 100644 --- a/cubrium/__about__.py +++ b/cubrium/__about__.py @@ -1 +1 @@ -__version__ = "0.1.0" +__version__ = "0.1.1" diff --git a/setup.cfg b/setup.cfg index 73a8e4a..a9c84b2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = cubrium -version = 0.1.0 +version = 0.1.1 author = Andreas Dutzler author_email = a.dutzler@gmail.com description = Cube in Equilibrium