File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 43
43
run : |
44
44
gcc --version
45
45
python3 --version
46
+ - name : Check For setup.py
47
+ id : need-pypi
48
+ run : |
49
+ echo ::set-output name=setup-py::$( find . -wholename './setup.py' )
46
50
- name : New boards check
47
51
run : python3 -u ci_new_boards_check.py
48
52
working-directory : tools
54
58
with :
55
59
name : stubs
56
60
path : circuitpython-stubs*
61
+ - name : Install pypi dependencies
62
+ if : contains(steps.need-pypi.outputs.setup-py, 'setup.py')
63
+ run : |
64
+ python -m pip install --upgrade pip
65
+ pip install setuptools wheel twine
66
+ - name : Publish stubs
67
+ if : contains(steps.need-pypi.outputs.setup-py, 'setup.py')
68
+ env :
69
+ TWINE_USERNAME : ${{ secrets.pypi_username }}
70
+ TWINE_PASSWORD : ${{ secrets.pypi_password }}
71
+ run : |
72
+ python setup.py sdist
73
+ twine upload dist/*
57
74
- name : Test Documentation Build (HTML)
58
75
run : sphinx-build -E -W -b html -D version=${{ env.CP_VERSION }} -D release=${{ env.CP_VERSION }} . _build/html
59
76
- uses : actions/upload-artifact@v2
You can’t perform that action at this time.
0 commit comments