Skip to content

Commit f886455

Browse files
authored
Merge pull request #1409 from ocefpaf/GH_actions_release
Release via GH actions
2 parents b410ab2 + 8c7891c commit f886455

2 files changed

Lines changed: 44 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 }}

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)