Skip to content

Commit 5d2cbcf

Browse files
committed
CI: fix release workflow
1 parent aca0747 commit 5d2cbcf

2 files changed

Lines changed: 26 additions & 2 deletions

File tree

.github/workflows/python_publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip
20-
pip install setuptools wheel twine
20+
pip install setuptools wheel twine build
2121
- name: Build and publish
2222
env:
2323
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2424
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2525
run: |
26-
python setup.py sdist bdist_wheel
26+
python -m build
2727
twine upload dist/*
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Upload Python Package
2+
3+
on:
4+
push
5+
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v6
11+
- name: Set up Python
12+
uses: actions/setup-python@v6
13+
with:
14+
python-version: '3.x'
15+
- name: Install dependencies
16+
run: |
17+
python -m pip install --upgrade pip
18+
pip install setuptools wheel twine build
19+
- name: Build and publish
20+
env:
21+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
22+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
23+
run: |
24+
python -m build

0 commit comments

Comments
 (0)