From fdb15d77868b0ce0a0a24e6d0e5e5ad1ee12b2e9 Mon Sep 17 00:00:00 2001 From: Jonas Eschle Date: Tue, 16 Apr 2024 11:56:56 -0400 Subject: [PATCH] chore: update build and deploy --- .github/workflows/cd.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 309b43f..a53edf6 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -15,24 +15,21 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 with: - python-version: "3.x" - - name: Install dependencies - run: | - pip install --upgrade pip - pip install setuptools wheel twine - - name: Install pep517 - run: >- - pip install pep517 - - name: Build a binary wheel and a source tarball - run: >- - python -m - pep517.build --source --binary --out-dir dist/ . + fetch-depth: 0 + - uses: actions/setup-python@v5 + - name: Build SDist and wheel + run: pipx run --spec build pyproject-build + + - name: Check metadata + run: pipx run twine check dist/* + + - uses: actions/upload-artifact@v4 + with: + path: dist/* publish: - needs: [dist] + needs: [ dist ] environment: pypi permissions: id-token: write