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@v2
16+ with :
17+ python-version : 3.x
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 --upgrade pip wheel setuptools setuptools_scm build twine
26+ python -m build --sdist --wheel . --outdir dist
27+
28+ - name : Check files
29+ run : |
30+ ls dist
31+ shell : bash
32+
33+ - name : Test wheels
34+ run : |
35+ cd dist && python -m pip install folium*.whl
36+ python -m twine check *
37+ shell : bash
38+
39+ - name : Publish a Python distribution to PyPI
40+ uses : pypa/gh-action-pypi-publish@master
41+ with :
42+ user : __token__
43+ 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