From 9163f168251937591b921a13c7337a07dd4c0773 Mon Sep 17 00:00:00 2001 From: "elena.totmenina" Date: Fri, 26 Nov 2021 18:32:36 +0300 Subject: [PATCH] Fix upload condition --- .github/workflows/conda-package.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 4e72d54517..86d9a025ed 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -215,7 +215,7 @@ jobs: upload_linux: needs: test_linux - if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true)}} + if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')}} runs-on: ubuntu-latest strategy: matrix: @@ -240,7 +240,7 @@ jobs: upload_windows: needs: test_windows - if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true)}} + if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')}} runs-on: windows-latest strategy: matrix: