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