From 775f0dd0cda9f971247e0f05cfc7b93e7ef7bee7 Mon Sep 17 00:00:00 2001 From: Lars Esser Date: Sun, 3 Oct 2021 19:44:57 +0200 Subject: [PATCH] .github: add action to publish package to pypi --- .github/workflows/publish.yml | 28 ++++++++++++++++++++++++++++ setup.cfg | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..cde28da --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,28 @@ +name: publish + +on: + push: + tags: [ v* ] + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel + - name: Create source and wheel dist + run: | + python -m build + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/setup.cfg b/setup.cfg index 4b7e597..ddc36be 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = schulze-condorcet -version = 1.0.0 +version = 1.0.1 author = Markus Walter author_email = dev@jonglieren-jena.de maintainer = CdE-Datenbank development team