From 588adb285c092a43705ecf43b53bccb462859b9f Mon Sep 17 00:00:00 2001 From: Matt Graham Date: Tue, 25 Mar 2025 09:03:29 +0000 Subject: [PATCH 1/3] Explicitly checkout tags in build workflow --- .github/workflows/build.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8d6a491..a482e223 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,12 +51,13 @@ jobs: steps: - uses: actions/checkout@v4 - + with: + fetch-depth: 0 + fetch-tags: true - name: Build wheels uses: pypa/cibuildwheel@v2.23.1 env: CIBW_SKIP: pp*-macosx_arm64 - - uses: actions/upload-artifact@v4 with: name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} @@ -67,10 +68,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Build sdist run: pipx run build --sdist - - uses: actions/upload-artifact@v4 with: name: cibw-sdist @@ -115,4 +114,3 @@ jobs: merge-multiple: true - name: Publish package distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - From ff9521cd875bdf6a1757d2bf71cad3a38b3ccbc1 Mon Sep 17 00:00:00 2001 From: Matt Graham Date: Tue, 25 Mar 2025 09:20:04 +0000 Subject: [PATCH 2/3] Also checkout tags when building sdist --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a482e223..85d28a58 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,6 +68,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + fetch-depth: 0 + fetch-tags: true - name: Build sdist run: pipx run build --sdist - uses: actions/upload-artifact@v4 From 37903329b49457170543763e9db9f093408463e1 Mon Sep 17 00:00:00 2001 From: Matt Graham Date: Tue, 25 Mar 2025 09:36:04 +0000 Subject: [PATCH 3/3] Correct YAML workflow syntax --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 85d28a58..d0bfbbc4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,6 +68,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: fetch-depth: 0 fetch-tags: true - name: Build sdist