Skip to content

Commit

Permalink
Only build from master & testpypi
Browse files Browse the repository at this point in the history
  • Loading branch information
BjornFJohansson committed Dec 8, 2023
1 parent 280c20c commit 97183a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pydna_pypi_build_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
if: github.event_name == 'release' && contains(github.ref, '/master')
if: github.event.release.target_commitish == 'master'
steps:
- uses: actions/checkout@v3
- name: Build and publish to pypi
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pydna_test_pypi_build_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
if: github.event_name == 'release' && contains(github.ref, '/testpypi')
if: github.event.release.target_commitish == 'testpypi'
steps:
- uses: actions/checkout@v3
- name: Build and publish to pypi
Expand Down

0 comments on commit 97183a8

Please sign in to comment.