Skip to content

Commit 139a9f8

Browse files
committed
Add deploy step and remove appveyor
1 parent 975207c commit 139a9f8

2 files changed

Lines changed: 33 additions & 35 deletions

File tree

.appveyor.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff 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/*

0 commit comments

Comments
 (0)