File tree 2 files changed +10
-62
lines changed 2 files changed +10
-62
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish to PyPI
2
2
3
- on :
4
- push :
5
- branches :
6
- - main
7
- pull_request :
8
- branches :
9
- - main
10
- release :
11
- types :
12
- - published
3
+ on : ["push", "pull_request"]
4
+
5
+ defaults :
6
+ run :
7
+ shell : bash
13
8
14
9
jobs :
15
10
packages :
16
11
runs-on : ubuntu-latest
17
12
steps :
18
- - uses : actions/checkout@v2
13
+ - uses : actions/checkout@v3
19
14
20
15
- name : Set up Python
21
- uses : actions/setup-python@v2
16
+ uses : actions/setup-python@v4
22
17
with :
23
18
python-version : 3.x
24
19
25
20
- name : Get tags
26
21
run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
27
- shell : bash
22
+
28
23
29
24
- name : Install build tools
30
25
run : |
31
26
python -m pip install --upgrade pip wheel build twine
32
27
33
- shell : bash
34
-
35
28
- name : Build binary wheel and sdist
36
29
run : python -m build --sdist --wheel . --outdir dist
37
30
38
31
- name : CheckFiles
39
32
run : |
40
33
ls dist
41
- shell : bash
42
34
43
35
- name : Test wheels
44
36
run : |
45
37
cd dist && python -m pip install folium*.whl
46
38
python -m twine check *
47
- shell : bash
48
39
49
40
- name : Publish a Python distribution to PyPI
50
- if : ${{ github.event_name == 'create' && github.event.ref_type == 'tag ' }}
51
- uses : pypa/gh-action-pypi-publish@master
41
+ if : ${{ github.event_name == 'release ' }}
42
+ uses : pypa/gh-action-pypi-publish@v1.5.1
52
43
with :
53
44
user : __token__
54
45
password : ${{ secrets.PYPI_PASSWORD }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments