Skip to content

Commit

Permalink
Fixed build publish
Browse files Browse the repository at this point in the history
  • Loading branch information
uchendui committed Sep 4, 2024
1 parent 336bb55 commit 4810b30
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build-publish-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ on:
release:
types: [ published ]




jobs:
build-wheels:
runs-on: ${{ matrix.os }}
permissions:
contents: write
contents: read
strategy:
matrix:
include:
Expand Down Expand Up @@ -48,6 +51,9 @@ jobs:

publish-testpypi:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
needs:
- build-wheels
if: github.event.release.prerelease == true # Only run if it's a pre-release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: build-publish

on:
release:
types: [published]
types: [ published ]

jobs:
build-wheels:
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
runs-on: ubuntu-latest
needs:
- build-wheels
if: github.event_name == 'release' && github.event.action == 'published && github.event.release.prerelease == false
if: github.event_name == 'release' && github.event.action == 'published' && github.event.release.prerelease == false
steps:
- name: Download dists
uses: actions/download-artifact@v3
Expand Down

0 comments on commit 4810b30

Please sign in to comment.