Skip to content

Commit

Permalink
Hack the build/upload script to upload missing builds for 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjackson committed Jan 31, 2024
1 parent 0080886 commit 7c695fd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build_upload_pypi_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7c695fd

Please sign in to comment.