Skip to content

Commit

Permalink
Merge sdist and wheel build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
ZipFile committed Aug 15, 2024
1 parent 7e01cee commit 1a59117
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,22 @@ on:
- published

jobs:
build-wheels:
name: Build wheels
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build sdist
run: pipx run build --sdist
- name: Build wheels
uses: pypa/[email protected]
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl

build-sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build sdist
run: pipx run build --sdist
- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz

test-pypi-publish:
name: Upload release to TestPyPI
needs: [build-wheels, build-sdist]
needs: [build]
runs-on: ubuntu-latest
environment: test-pypi
permissions:
Expand All @@ -53,7 +44,7 @@ jobs:

pypi-publish:
name: Upload release to PyPI
needs: [build-wheels, build-sdist, test-pypi-publish]
needs: [build, test-pypi-publish]
runs-on: ubuntu-latest
environment: pypi
permissions:
Expand Down

0 comments on commit 1a59117

Please sign in to comment.