From f62c66b040e55559f3ea48c049692caab2034258 Mon Sep 17 00:00:00 2001 From: Chris Marchbanks Date: Wed, 28 Oct 2020 18:45:22 -0600 Subject: [PATCH] Deploy on master or tags Signed-off-by: Chris Marchbanks --- .github/workflows/test-build-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-build-deploy.yml b/.github/workflows/test-build-deploy.yml index 28e06bb3bc8..dfb10eabd81 100644 --- a/.github/workflows/test-build-deploy.yml +++ b/.github/workflows/test-build-deploy.yml @@ -173,7 +173,7 @@ jobs: deploy_website: needs: [build, test] - if: github.ref == 'refs/heads/master' && github.repository == 'cortexproject/cortex' + if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.repository == 'cortexproject/cortex' runs-on: ubuntu-latest container: image: quay.io/cortexproject/build-image:upgrade-build-image-debian-491e60715-WIP @@ -210,7 +210,7 @@ jobs: deploy: needs: [build, test, lint, integration, integration-configs-db] - if: github.ref == 'refs/heads/master' && github.repository == 'cortexproject/cortex' + if: (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && github.repository == 'cortexproject/cortex' runs-on: ubuntu-latest container: image: quay.io/cortexproject/build-image:upgrade-build-image-debian-491e60715-WIP