Skip to content

Commit 8de96c4

Browse files
authored
Merge pull request #88 from Kohulan/fix-GH-action-for-pypi-releases
fix: GH action for pypi releases
2 parents 69cfa6f + ce4c3b9 commit 8de96c4

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/pypi_release.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
1-
name: Publish Python 🐍 distributions 📦 to PyPI
1+
name: Publish Python distributions to PyPI
22

33
on:
44
release:
55
types: [published]
66

77
jobs:
88
build-n-publish:
9-
name: Build and publish Python 🐍 distributions 📦 to PyPI
10-
runs-on: ubuntu-18.04
9+
name: Build and publish Python distributions to PyPI
10+
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@master
1313
- name: Set up Python 3.10
1414
uses: actions/setup-python@v3
1515
with:
1616
python-version: '3.10'
1717
- name: Install pypa/setuptools
18-
run: >-
19-
python -m
20-
pip install wheel
18+
run: python -m pip install wheel
2119
- name: Build a binary wheel
22-
run: >-
23-
python setup.py sdist bdist_wheel
24-
- name: Publish distribution 📦 to PyPI
25-
uses: pypa/gh-action-pypi-publish@master
20+
run: python setup.py sdist bdist_wheel
21+
- name: Publish distribution to PyPI
22+
uses: pypa/[email protected]
2623
with:
2724
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)