Skip to content

Commit

Permalink
Only publish on release
Browse files Browse the repository at this point in the history
  • Loading branch information
jspahrsummers committed Nov 21, 2024
1 parent 4f87184 commit aac117f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,15 @@ jobs:
path: src/${{ matrix.package }}/dist/

publish:
runs-on: ubuntu-latest
needs: [build, detect-packages]
if: github.event_name == 'release'

strategy:
matrix:
package: ${{ fromJson(needs.detect-packages.outputs.packages) }}
name: Publish ${{ matrix.package }}
runs-on: ubuntu-latest

environment: release
permissions:
id-token: write # Required for trusted publishing
Expand Down

0 comments on commit aac117f

Please sign in to comment.