Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add publishing action #1

Merged
merged 2 commits into from
Aug 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '[email protected]',
url = 'https://github.com/pklaus/brother_ql',
url = 'https://github.com/pklaus/brother_ql-inventree',
license = 'GPL',
packages = ['brother_ql',
'brother_ql.backends'],
Expand Down