Skip to content

Commit

Permalink
Test Pypi publish only on pull requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
teleportx committed Dec 14, 2023
1 parent b4b9866 commit ad2c397
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Publish Package

on: pull
on: push

env:
version: ${{ github.run_id }}.post${{ github.run_attempt }}
Expand Down Expand Up @@ -63,6 +63,7 @@ jobs:

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
if: github.event_name == 'pull_request'

steps:
- name: Download all the dists
Expand Down

0 comments on commit ad2c397

Please sign in to comment.