| •1 |
name: Release |
| 2 |
|
| 3 |
on: |
| 4 |
release: |
| 5 |
types: |
| 6 |
- published |
| 7 |
|
| 8 |
jobs: |
| 9 |
release: |
| 10 |
needs: [build-ubuntu] |
| 11 |
runs-on: ubuntu-latest |
| 12 |
steps: |
| 13 |
- uses: actions/checkout@v2 |
| 14 |
with: |
| 15 |
fetch-depth: 0 |
| 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 setuptools_scm wheel twine |
| 24 |
- name: Build and publish (testpypi) |
| 25 |
env: |
| 26 |
TWINE_USERNAME: __token__ |
| 27 |
TWINE_PASSWORD: ${{ secrets.testpypi_token }} |
| 28 |
TWINE_REPOSITORY: testpypi |
| 29 |
run: | |
| 30 |
python setup.py sdist |
| 31 |
twine upload dist/* |