Skip to content

Commit

Permalink
Fix github ref matching for workflow dispatches
Browse files Browse the repository at this point in the history
  • Loading branch information
manugarg authored Jan 16, 2024
1 parent 07c8514 commit 28033c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [master]
paths:
- 'src/**'
- '.github/workflows/build.yml'
- '.github/**'
- Makefile
- Dockerfile
pull_request:
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:
- 'src/**'
- name: Publish package to PyPI (non-linux)
if: ${{ (matrix.os != 'ubuntu') && (steps.src_changes.outputs.changed == 'true' || startsWith(github.ref, 'refs/tags/v')) && (github.event_name != 'pull_request') }}
if: ${{ (matrix.os != 'ubuntu') && (steps.src_changes.outputs.changed == 'true' || startsWith(github.event.inputs.tag, 'v') || startsWith(github.ref, 'refs/tags/v')) && (github.event_name != 'pull_request') }}
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI }}
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
- 'src/**'
- name: Publish package to PyPI
if: ${{ startsWith(github.ref, 'refs/tags/v') || steps.src_changes.outputs.changed == 'true' }}
if: ${{ startsWith(github.event.inputs.tag, 'v') || startsWith(github.ref, 'refs/tags/v') || steps.src_changes.outputs.changed == 'true' }}
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI }}
Expand Down

0 comments on commit 28033c5

Please sign in to comment.