From 91c6ca9d11afd8197bf3fa043c7c8d2a5e9617d3 Mon Sep 17 00:00:00 2001 From: mdtanker Date: Mon, 29 Jan 2024 15:14:43 -0700 Subject: [PATCH] build: switch GHA from hynek to build and twine --- .github/workflows/release.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fe79114c..9b35207e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,16 +12,26 @@ concurrency: cancel-in-progress: true jobs: - # Always build & lint package. Need to re-checkout after semantic-release in case it + # Always build package. Need to re-checkout after semantic-release in case it # made a commit build-package: - name: Build & verify package + name: Build package runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: hynek/build-and-inspect-python-package@v2 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Build SDist and wheel + run: pipx run build + + - uses: actions/upload-artifact@v4 + with: + name: Packages + path: dist/* + + - name: Check metadata + run: pipx run twine check dist/* # Upload to Test PyPI. release-test-pypi: