Skip to content

Commit 141ec0d

Browse files
author
Hugo Osvaldo Barrera
committed
Update publishing workflow
1 parent 4d59112 commit 141ec0d

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,15 @@ on:
77

88
jobs:
99
pypi:
10-
runs-on: ubuntu-18.04
10+
runs-on: ubuntu-22.04
1111
name: Publish package on PyPI
1212
steps:
13-
- uses: actions/checkout@master
14-
- uses: actions/setup-python@v1
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-python@v3
1515
with:
16-
python-version: 3.7
17-
architecture: x64
18-
- name: Install build dependencies
19-
run: pip install wheel
20-
- name: Build packages
21-
run: python setup.py sdist bdist_wheel
22-
- name: Publish a Python distribution to PyPI
23-
uses: pypa/gh-action-pypi-publish@master
16+
python-version: 3.10
17+
- run: pip install build setuptools wheel
18+
- run: python -m build --sdist --wheel --no-isolation
19+
- uses: pypa/gh-action-pypi-publish@release/v1
2420
with:
2521
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)