File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : publish
2+
3+ on :
4+ release :
5+ types :
6+ - published
7+
8+ jobs :
9+ packages :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v2
13+
14+ - name : Set up Python
15+ uses : actions/setup-python@v1
16+ with :
17+ python-version : 3.6
18+
19+ - name : Get tags
20+ run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
21+ shell : bash
22+
23+ - name : build
24+ run : |
25+ python -m pip install wheel twine
26+ python -m pip install -r requirements.txt
27+ python setup.py sdist
28+ pip wheel . -w dist --no-deps
29+
30+ - name : Check files
31+ run : |
32+ ls dist
33+ shell : bash
34+
35+ - name : Test wheels
36+ run : |
37+ python -m twine check dist/*
38+ shell : bash
39+
40+ - name : Publish a Python distribution to PyPI
41+ uses : pypa/gh-action-pypi-publish@master
42+ with :
43+ user : __token__
44+ password : ${{ secrets.PYPI_PASSWORD }}
Original file line number Diff line number Diff line change @@ -38,4 +38,4 @@ script:
3838 fi
3939
4040 cp examples/Quickstart.ipynb docs/quickstart.ipynb
41- pushd docs && make clean html linkcheck && popd
41+ pushd docs && make clean html linkcheck && popd
You can’t perform that action at this time.
0 commit comments