aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt <32886639+mattlyon93@users.noreply.github.com>2020-09-09 21:50:23 +1000
committerGitHub <noreply@github.com>2020-09-09 21:50:23 +1000
commit10fabce36d57a82495348799ac7eb5cfe496ef91 (patch)
treedde1b03c89b3ec2a403e5fecd258454aa25aa63c
parent9619311b0c5f10778daf0f01bf116f01480aefd7 (diff)
downloadtpb-lite-10fabce36d57a82495348799ac7eb5cfe496ef91.tar.gz
tpb-lite-10fabce36d57a82495348799ac7eb5cfe496ef91.tar.bz2
tpb-lite-10fabce36d57a82495348799ac7eb5cfe496ef91.zip
Create python-publish.ymlv0.6.00.6.0
-rw-r--r--.github/workflows/python-publish.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml
new file mode 100644
index 0000000..4e1ef42
--- /dev/null
+++ b/.github/workflows/python-publish.yml
@@ -0,0 +1,31 @@
+# This workflows will upload a Python Package using Twine when a release is created
+# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
+
+name: Upload Python Package
+
+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.x'
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install setuptools wheel twine
+ - name: Build and publish
+ env:
+ TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
+ TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
+ run: |
+ python setup.py sdist bdist_wheel
+ twine upload dist/*