File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflows will upload a Python Package using Twine when a
2+ # release is created. For more information see:
3+ # https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
4+
5+ name : Upload Python Package
6+
7+ on :
8+ release :
9+ types : [created]
10+
11+ jobs :
12+ deploy :
13+
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v2
18+ - name : Set up Python
19+ uses : actions/setup-python@v1
20+ with :
21+ python-version : ' 3.x'
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ pip install setuptools wheel twine build
26+ pip install -e .
27+ - name : Build and publish
28+ env :
29+ TWINE_USERNAME : __token__
30+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
31+ run : |
32+ python -m build
33+ twine upload dist/*
You can’t perform that action at this time.
0 commit comments