From 20d056c225e1c51cc40440f9f8844e9a29f6e8f7 Mon Sep 17 00:00:00 2001 From: garegincontractor <“Garegin.Tamrazyan.Contractor@pepsico.com”> Date: Fri, 22 Sep 2023 13:07:08 +0400 Subject: [PATCH] let the workflow to be triggered on new tag --- .github/workflows/build.yaml | 2 ++ .github/workflows/python-bump2version-release.yaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 938b312..1512715 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -7,6 +7,8 @@ on: push: branches: - master + tags: + - '*' defaults: run: diff --git a/.github/workflows/python-bump2version-release.yaml b/.github/workflows/python-bump2version-release.yaml index d199431..de53a0f 100644 --- a/.github/workflows/python-bump2version-release.yaml +++ b/.github/workflows/python-bump2version-release.yaml @@ -69,7 +69,7 @@ jobs: env: TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} - if: "${{ startsWith(github.ref, 'refs/tags/') }}" + if: "${{ github.ref_type == 'tag' }}" run: | python -m build twine upload --repository-url https://nexus.pepstaging.com/repository/pypi-release/ dist/*