From 68d72356f7c399d8524c33945a66b998e9d844a7 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Wed, 24 Aug 2022 19:50:57 +0200 Subject: [PATCH 1/2] add publishing action --- .github/workflows/publish.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) 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..17d21f6 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,31 @@ +name: Release to pylint + +on: + release: + types: [published] + +env: + python_version: 3.8 + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Setup Python ${{ env.python_version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ env.python_version }} + - name: Install Python build dependencies + run: | + pip install --upgrade wheel setuptools twine build + - name: Build binary + run: | + python3 -m build + - name: Publish tp PyPi + run: python3 -m twine upload dist/* + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + TWINE_REPOSITORY: pypi From 52e5cbfd272a232eb18ffbad2e1b1b635b218bda Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Wed, 24 Aug 2022 19:53:28 +0200 Subject: [PATCH 2/2] Update setup.py --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 09be49e..30e9ff2 100644 --- a/setup.py +++ b/setup.py @@ -15,12 +15,12 @@ LDESC = '' setup(name='brother_ql', - version = '0.9.dev0', + version = '1.0a0', description = 'Python package to talk to Brother QL label printers', long_description = LDESC, author = 'Philipp Klaus', author_email = 'philipp.l.klaus@web.de', - url = 'https://github.com/pklaus/brother_ql', + url = 'https://github.com/pklaus/brother_ql-inventree', license = 'GPL', packages = ['brother_ql', 'brother_ql.backends'],