From 8deb3d63cd8d4e8f3151eef150d49ed5d5770e44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elo=C3=AFse=20Brocas?= Date: Fri, 8 Dec 2023 17:36:40 +0100 Subject: [PATCH] [fix] ci: update publish ci to use build package --- .github/workflows/release.yml | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 44fc3b6..a60775d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: types: [published] jobs: - build_wheels: + build_wheel_and_sdist: name: Build wheel runs-on: ubuntu-latest @@ -13,32 +13,22 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.11' - name: Install dependencies - run: pip install wheel - - name: Build wheel - run: pip wheel -w wheels . + run: pip install build + - name: Build wheel and sdist + run: python3 -m build - uses: actions/upload-artifact@v3 with: name: artifact - path: ./wheels/numbat*.whl - - build_sdist: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - with: - python-version: '3.10' - - name: Build sdist - run: python setup.py sdist + path: dist/numbat*.whl - uses: actions/upload-artifact@v3 with: name: artifact path: dist/*.tar.gz upload_pypi: - needs: [build_wheels, build_sdist] + needs: build_wheel_and_sdist runs-on: ubuntu-latest steps: - uses: actions/download-artifact@v3