Skip to content

Commit 849fdb6

Browse files
authored
Merge pull request #1622 from ocefpaf/pypi
rename to avoid docs confusion and update
2 parents c04768a + 3997842 commit 849fdb6

File tree

2 files changed

+10
-62
lines changed

2 files changed

+10
-62
lines changed
Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,45 @@
11
name: Publish to PyPI
22

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
138

149
jobs:
1510
packages:
1611
runs-on: ubuntu-latest
1712
steps:
18-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1914

2015
- name: Set up Python
21-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v4
2217
with:
2318
python-version: 3.x
2419

2520
- name: Get tags
2621
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
27-
shell: bash
22+
2823

2924
- name: Install build tools
3025
run: |
3126
python -m pip install --upgrade pip wheel build twine
3227
33-
shell: bash
34-
3528
- name: Build binary wheel and sdist
3629
run: python -m build --sdist --wheel . --outdir dist
3730

3831
- name: CheckFiles
3932
run: |
4033
ls dist
41-
shell: bash
4234
4335
- name: Test wheels
4436
run: |
4537
cd dist && python -m pip install folium*.whl
4638
python -m twine check *
47-
shell: bash
4839
4940
- 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
5243
with:
5344
user: __token__
5445
password: ${{ secrets.PYPI_PASSWORD }}

.github/workflows/release.yaml

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)