File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build distribution
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ test :
7+ runs-on : " ubuntu-latest"
8+
9+ steps :
10+ - name : Checkout source
11+ uses : actions/checkout@v2
12+
13+ - name : Set up Python 3.8
14+ uses : actions/setup-python@v1
15+ with :
16+ python-version : 3.8
17+
18+ - name : Install pypa/build
19+ run : python -m pip install build wheel
20+
21+ - name : Build distributions
22+ shell : bash -l {0}
23+ run : python setup.py sdist bdist_wheel
24+
25+ - name : Publish package to TestPyPI
26+ uses : pypa/gh-action-pypi-publish@master
27+ with :
28+ user : __token__
29+ password : ${{ secrets.TEST_PYPI_API_TOKEN }}
30+ repository_url : https://test.pypi.org/legacy/
31+
32+ - name : Publish package to PyPI
33+ if : github.repository == 'dask/dask-mpi' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
34+ uses : pypa/gh-action-pypi-publish@master
35+ with :
36+ user : __token__
37+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments