We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 826bd4f commit 939cf8dCopy full SHA for 939cf8d
.github/workflows/publish.yml
@@ -0,0 +1,30 @@
1
+# This workflow will upload a python package uing twine when a release is triggered
2
+
3
+name: publish
4
5
+on:
6
+ release:
7
+ types: [created]
8
9
+jobs:
10
+ deploy:
11
12
+ runs-on:ubuntu-latest
13
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v2
18
+ with:
19
+ python-version: '3.x'
20
+ - name: Install dependencies
21
+ run: |
22
+ python -m pip install --upgrade pip
23
+ pip install setuptools wheel twine
24
+ - name: Build and publish
25
+ env:
26
+ TWINE_USERNAME: ${{ secrets.PYPI_USERS }}
27
+ TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
28
29
+ python setup.py sdist bdist_wheel
30
+ twine upload dist/*
0 commit comments