Skip to content

Commit 97183a8

Browse files
Only build from master & testpypi
1 parent 280c20c commit 97183a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/pydna_pypi_build_workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8-
if: github.event_name == 'release' && contains(github.ref, '/master')
8+
if: github.event.release.target_commitish == 'master'
99
steps:
1010
- uses: actions/checkout@v3
1111
- name: Build and publish to pypi

.github/workflows/pydna_test_pypi_build_workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8-
if: github.event_name == 'release' && contains(github.ref, '/testpypi')
8+
if: github.event.release.target_commitish == 'testpypi'
99
steps:
1010
- uses: actions/checkout@v3
1111
- name: Build and publish to pypi

0 commit comments

Comments
 (0)