Skip to content

Commit c7e4a13

Browse files
committed
Rework publishing
1 parent 9a9b33f commit c7e4a13

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/merge.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@ jobs:
2828
uses: actions/setup-python@v5
2929
with:
3030
python-version: ${{ env.DEFAULT_PYTHON }}
31-
- name: Build a distribution
31+
- name: Install pypa/build
3232
run: >-
33-
python setup.py sdist
33+
python3 -m
34+
pip install
35+
build
36+
--user
37+
- name: Build a binary wheel and a source tarball
38+
run: python3 -m build
3439
- name: Publish distribution 📦 to PyPI
3540
uses: pypa/gh-action-pypi-publish@release/v1
3641
with:

.github/workflows/verify.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,14 @@ jobs:
360360
run: |
361361
echo "Failed to restore Python virtual environment from cache"
362362
exit 1
363-
- name: Build a distribution
363+
- name: Install pypa/build
364364
run: >-
365-
python setup.py sdist
365+
python3 -m
366+
pip install
367+
build
368+
--user
369+
- name: Build a binary wheel and a source tarball
370+
run: python3 -m build
366371
- name: Publish distribution 📦 to Test PyPI
367372
uses: pypa/gh-action-pypi-publish@release/v1
368373
continue-on-error: true

0 commit comments

Comments
 (0)