Skip to content

Commit

Permalink
fix: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dirvine committed Dec 19, 2024
1 parent ab56bd8 commit 2de9ca7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ on:
tags:
- 'v*'

# Add top-level permissions block
permissions:
id-token: write
contents: read

jobs:
macos:
runs-on: macos-latest
# Add permissions to job
permissions:
id-token: write
contents: read
Expand All @@ -33,12 +35,13 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-macos-${{ matrix.target }}-py${{ matrix.python-version }}
path: dist/*.whl
if-no-files-found: error

windows:
runs-on: windows-latest
# Add permissions to job
permissions:
id-token: write
contents: read
Expand Down Expand Up @@ -91,7 +94,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-linux-${{ matrix.target }}-py${{ matrix.python-version }}
path: dist/*.whl
if-no-files-found: error

Expand Down Expand Up @@ -125,12 +128,13 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-musllinux-${{ matrix.target }}-py${{ matrix.python-version }}
path: dist/*.whl
if-no-files-found: error

sdist:
runs-on: ubuntu-latest
# Add permissions to job
permissions:
id-token: write
contents: read
Expand All @@ -152,6 +156,7 @@ jobs:
name: Release
runs-on: ubuntu-latest
needs: [macos, windows, linux, musllinux, sdist]
# Keep existing permissions
permissions:
id-token: write
contents: read
Expand Down

0 comments on commit 2de9ca7

Please sign in to comment.