From 7c695fdd21e9148c7424b994afbd2b96c7a644f9 Mon Sep 17 00:00:00 2001 From: "Adam J. Jackson" Date: Wed, 31 Jan 2024 14:46:58 +0000 Subject: [PATCH] Hack the build/upload script to upload missing builds for 1.3.1 --- .github/workflows/build_upload_pypi_wheels.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_upload_pypi_wheels.yml b/.github/workflows/build_upload_pypi_wheels.yml index c981b6ff7..61df3fcb7 100644 --- a/.github/workflows/build_upload_pypi_wheels.yml +++ b/.github/workflows/build_upload_pypi_wheels.yml @@ -36,6 +36,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + ref: v1.3.1 fetch-depth: 0 # Ensure tags are fetched for versioning - name: Setup Python ${{ matrix.python-version }} with Conda uses: conda-incubator/setup-miniconda@v3 @@ -79,20 +80,21 @@ jobs: python setup.py sdist - name: Upload source dist as build artifact - if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' && github.event_name == 'release' + if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' # && github.event_name == 'release' uses: actions/upload-artifact@v4 with: name: python-source-distribution path: dist - name: Upload wheels as build artifacts + if: matrix.os == 'windows-latest' || (matrix.os == 'macos-latest' && matrix.python-version != '3.10') uses: actions/upload-artifact@v4 with: name: wheel-${{ matrix.wheelname }}-${{ matrix.python-version }} path: wheelhouse/*-${{ matrix.wheelname }}*.whl publish: - if: github.event_name == 'release' + # if: github.event_name == 'release' needs: build name: Upload release to PyPI runs-on: ubuntu-latest @@ -105,6 +107,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: + ref: v1.3.1 fetch-depth: 0 # This is possibly unnecessary? - name: Download artifacts to Ubuntu environment