Skip to content

Commit 039d700

Browse files
committed
2 parents 0007ccd + bb2ae54 commit 039d700

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

.github/workflows/python-publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: Upload Python Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
deploy:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: '3.x'
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install setuptools wheel twine
25+
- name: Build and publish
26+
env:
27+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
29+
run: |
30+
python setup.py upload

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class MyBot:
8282
callback=self.message_handler,
8383
capability=["membership", "tags", "commands"],
8484
live=True)
85-
self.ws.start_bot()
85+
self.ws.start_blocking()
8686
# Any code after this will be executed after a KeyboardInterrupt
8787

8888
def message_handler(self, m):
@@ -159,7 +159,7 @@ class MyBot:
159159
callback=self.message_handler,
160160
capability=["membership", "tags", "commands"],
161161
live=False)
162-
self.ws.start_bot()
162+
self.ws.start_blocking()
163163

164164
def set_settings(self, host, port, chan, nick, auth):
165165
self.host = host

0 commit comments

Comments
 (0)