From 97183a88d9e5eaca54965586ef1fbee8c3e60d83 Mon Sep 17 00:00:00 2001 From: BjornFJohansson Date: Fri, 8 Dec 2023 09:12:31 +0000 Subject: [PATCH] Only build from master & testpypi --- .github/workflows/pydna_pypi_build_workflow.yml | 2 +- .github/workflows/pydna_test_pypi_build_workflow.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pydna_pypi_build_workflow.yml b/.github/workflows/pydna_pypi_build_workflow.yml index 6602ca2b..96d1810c 100644 --- a/.github/workflows/pydna_pypi_build_workflow.yml +++ b/.github/workflows/pydna_pypi_build_workflow.yml @@ -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 diff --git a/.github/workflows/pydna_test_pypi_build_workflow.yml b/.github/workflows/pydna_test_pypi_build_workflow.yml index bee4cee4..4c484130 100644 --- a/.github/workflows/pydna_test_pypi_build_workflow.yml +++ b/.github/workflows/pydna_test_pypi_build_workflow.yml @@ -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