Skip to content

Commit 69751fb

Browse files
pythonpublish.yml
1 parent 68a3141 commit 69751fb

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflows 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: Elements.py
5+
6+
on:
7+
release:
8+
types: [ver 2.2.1]
9+
10+
jobs:
11+
deploy:
12+
13+
runs-on: windows10
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Elements.py
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: '3.8'
21+
- name: speechrecognition, nltk, pillow, keyboard, threading, tkinter, pygame, ipython, pyaudio, keyboard, pocketsphinx
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 sdist bdist_wheel
31+
twine upload dist/*

0 commit comments

Comments
 (0)