File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -135,3 +135,36 @@ jobs:
135135
136136 pip install ${file}
137137 python extern/nlopt/test/t_python.py
138+
139+ deploy :
140+ name : deploy packages
141+ runs-on : ubuntu-latest
142+ needs : test-wheels
143+ if : startsWith(github.ref, 'refs/tags/')
144+
145+ steps :
146+ - name : Setup Python ${{ matrix.python-version }}
147+ uses : actions/setup-python@v2
148+ with :
149+ python-version : ${{ matrix.python-version }}
150+
151+ - name : Retrieve packages
152+ uses : actions/download-artifact@v2
153+ with :
154+ name : artifact
155+ path : dist
156+
157+ - name : Install twine
158+ run : pip install twine
159+
160+ - name : Upload packages to testpypi
161+ env :
162+ TWINE_USERNAME : ${{ secrets.PYPI_TEST_UID }}
163+ TWINE_PASSWORD : ${{ secrets.PYPI_TEST_PWD }}
164+ run : python -m twine upload --skip-existing --repository testpypi dist/*
165+
166+ - name : Upload packages to pypi
167+ env :
168+ TWINE_USERNAME : ${{ secrets.PYPI_UID }}
169+ TWINE_PASSWORD : ${{ secrets.PYPI_PWD }}
170+ run : python -m twine upload --skip-existing dist/*
You can’t perform that action at this time.
0 commit comments