From 442f14350d3a2df67204c7ec32e73f7820c62bc6 Mon Sep 17 00:00:00 2001 From: Simon Hayessen Date: Wed, 23 Feb 2022 21:18:04 +0100 Subject: [PATCH] Github action to publish releases to PyPI --- .github/workflows/publish.yml | 21 +++++++++++++++++++++ README.md | 13 +++---------- 2 files changed, 24 insertions(+), 10 deletions(-) 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..0f3653b --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,21 @@ +name: Release + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.10' + - name: Install poetry + run: pip install poetry + - name: Build and publish + run: | + poetry build + poetry publish -u "__token__" -p "${{ secrets.PYPI_API_TOKEN }}" diff --git a/README.md b/README.md index b1b7368..a73540c 100644 --- a/README.md +++ b/README.md @@ -16,18 +16,11 @@ Connect and control Elgato Stream Decks from Linux. ## Installation -### From source +### PyPI -Clone the repository and use pip to install it: + pip install knoepfe - git clone git@github.com:lnqs/knoepfe.git - cd knoepfe - pip install . - -### Other channels - -Currently cloning the repository is the only way to go. -PyPI and Arch Linux AUR are going to be available soon :) +should do the trick :) ### Prerequisites