File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 6565
6666 - name : Coverage
6767 uses : codecov/codecov-action@v1
68+
69+ deploy :
70+ # this will run when you have tagged a commit, starting with "v*"
71+ # and requires that you have put your twine API key in your
72+ # github secrets (see readme for details)
73+ needs : [test]
74+ runs-on : ubuntu-latest
75+ if : contains(github.ref, 'tags')
76+ steps :
77+ - uses : actions/checkout@v2
78+ - name : Set up Python
79+ uses : actions/setup-python@v2
80+ with :
81+ python-version : " 3.x"
82+ - name : Install dependencies
83+ run : |
84+ python -m pip install --upgrade pip
85+ pip install -U setuptools setuptools_scm wheel twine
86+ - name : Build and publish
87+ env :
88+ TWINE_USERNAME : __token__
89+ TWINE_PASSWORD : ${{ secrets.TWINE_API_KEY }}
90+ run : |
91+ git tag
92+ python setup.py sdist bdist_wheel
93+ twine upload dist/*
You can’t perform that action at this time.
0 commit comments