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