-
-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (38 loc) · 1.07 KB
/
create_sdist.yml
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
35
36
37
38
39
40
41
42
43
44
45
name: Create and publish Source Distribution
on:
push:
branches:
- pypi-dev
paths:
- '.github/workflows/create_sdist.yml'
- 'python-webrtc/cpp/**'
- 'CMakeLists.txt'
- 'setup.py'
jobs:
create_sdist:
name: Create and publish Source Distribution
runs-on: ubuntu-latest
steps:
- name: Clone.
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup Python.
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Create Source Distribution.
run: python setup.py sdist
- name: Upload artifacts.
uses: actions/upload-artifact@v2
with:
name: "wrtc sdist"
path: ./dist/*
- name: Publish a Python distribution to PyPI.
if: github.ref == 'refs/heads/pypi-dev' && github.repository == 'MarshalX/python-webrtc'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
pip install twine
twine upload dist/*