Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
Another try with WIndows wheel-building
  • Loading branch information
josh-hadley committed Oct 5, 2024
1 parent 1d69d5b commit 3aed40c
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]

steps:

Expand All @@ -36,6 +36,10 @@ jobs:
with:
python-version: '3.9'

- name: Set up msbuild (Windows only)
uses: microsoft/[email protected]
if: startsWith(matrix.os, 'windows')

- name: Build wheel
uses: pypa/[email protected]
with:
Expand Down Expand Up @@ -67,6 +71,9 @@ jobs:
needs:
- build_wheels
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
permissions:
id-token: write
contents: write # Required by 'action-gh-release'
Expand All @@ -84,22 +91,10 @@ jobs:
echo "VERSION=$FLAT_TAG" >> "$GITHUB_OUTPUT"
shell: bash

- name: Download release assets for ubutu-latest
uses: actions/download-artifact@v4
with:
name: wheelstorage-ubuntu-latest
path: dist

- name: Download release assets for macos-latest
uses: actions/download-artifact@v4
with:
name: wheelstorage-macos-latest
path: dist

- name: Download release assets for windows-latest
- name: Download release assets for ${{ matrix.os }}
uses: actions/download-artifact@v4
with:
name: wheelstorage-windows-latest
name: wheelstorage-${{ matrix.os }}
path: dist

- name: Publish dist(s) to PyPI
Expand Down

0 comments on commit 3aed40c

Please sign in to comment.