Skip to content

Commit

Permalink
Only run pypi-publish for releases tagged v*
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 674278431
Change-Id: I8050aff48afd003b8e49ad83bedfbc65b6cf3069
  • Loading branch information
jagapiou authored and copybara-github committed Sep 13, 2024
1 parent f43b98f commit 4c03624
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ permissions: read-all
jobs:
build:
name: Build
if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
Expand Down Expand Up @@ -86,8 +87,8 @@ jobs:
publish:
name: Publish
needs: test
if: ${{ ! failure() }}
needs: [build, test]
if: always() && needs.build.result == 'success' && needs.test.result != 'failure'
runs-on: ubuntu-latest
environment:
name: pypi
Expand Down

0 comments on commit 4c03624

Please sign in to comment.