From d79426ece7925b9de4e67a8feb6bfca8bde4dbce Mon Sep 17 00:00:00 2001 From: Arkadii Yakovets Date: Thu, 26 Sep 2024 13:00:44 -0700 Subject: [PATCH] Update CI/CD: trigger PyPI job on tag push --- .github/workflows/ci_cd.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 35ca9893..21a5cebd 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -1,9 +1,11 @@ name: CI/CD on: - - pull_request - - push - - workflow_dispatch + pull_request: + push: + tags: + - '*' + workflow_dispatch: concurrency: cancel-in-progress: true @@ -307,7 +309,7 @@ jobs: publish-to-test-pypi: name: Publish Test PyPI package if: | - github.repository == 'owasp/nettacker' && + github.repository == 'OWASP/Nettacker' && github.event_name == 'push' && github.ref_name == 'master' environment: dev @@ -333,9 +335,9 @@ jobs: publish-to-pypi: name: Publish PyPI package if: | - github.repository == 'owasp/nettacker' && + github.repository == 'OWASP/Nettacker' && github.event_name == 'push' && - startsWith(github.event.ref, 'refs/tags/v') + startsWith(github.event.ref, 'refs/tags/') environment: release needs: - test-build-package