-
Notifications
You must be signed in to change notification settings - Fork 12
34 lines (30 loc) · 788 Bytes
/
Copy pathmake_sdist.yml
File metadata and controls
34 lines (30 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: make source distribution
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: make sdist
run: |
git submodule update --init --recursive
python setup.py sdist
- name: upload sdist
uses: actions/upload-artifact@v1
with:
name: dist
path: dist
- name: Publish to PyPI
env:
PYPI_USERNAME: ${{ secrets.PYPI_USER }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install twine
python -m twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} --repository-url https://upload.pypi.org/legacy/ dist/*