Skip to content

Commit

Permalink
Allow PyPI publishing job to be triggered manually
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Mar 12, 2024
1 parent 984429f commit 89c9ea1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/wheel_tests_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,10 @@ jobs:
build_macos_wheels,
build_windows_wheels,
]
# Run only on tags pushed to the repository
if: github.repository_owner == 'PyWavelets' && startsWith(github.ref, 'refs/tags/v')
# Run only on tags pushed to the repository or when triggered manually
if: >-
github.repository == 'PyWavelets/pywt' && (startsWith(github.ref, 'refs/tags/v') ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.push_wheels == 'true'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
Expand Down Expand Up @@ -237,7 +239,7 @@ jobs:
]
# Run only on pushes to the master branch, on schedule, or when triggered manually
if: >-
github.repository_owner == 'PyWavelets' &&
github.repository == 'PyWavelets/pywt' &&
(github.event_name == 'push' && github.ref == 'refs/heads/master') ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.push_wheels == 'true') ||
(github.event_name == 'schedule')
Expand Down

0 comments on commit 89c9ea1

Please sign in to comment.