From 24bc55b6988ea7bbb190fac12be1301ea5c7b58a Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Mon, 15 Aug 2022 17:52:20 +0530 Subject: [PATCH 1/2] Skip deploy on tag Signed-off-by: Riddhesh Sanghvi --- .github/workflows/test_and_build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_and_build.yml b/.github/workflows/test_and_build.yml index b9fef0f7c..6ab9d7504 100644 --- a/.github/workflows/test_and_build.yml +++ b/.github/workflows/test_and_build.yml @@ -173,7 +173,7 @@ jobs: name: Deploy Phar if: | github.repository_owner == 'EasyEngine' && - (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) + (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master') runs-on: ubuntu-latest needs: [build, test] @@ -231,7 +231,7 @@ jobs: github.repository_owner == 'EasyEngine' && startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest - needs: [build, test, deploy] + needs: [build, test] steps: - name: Check out source code From a3c4cd6f97b62909558ac48a5d3bcc13d237fe98 Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Mon, 15 Aug 2022 17:52:44 +0530 Subject: [PATCH 2/2] Skip version set on tag Signed-off-by: Riddhesh Sanghvi --- .github/workflows/test_and_build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test_and_build.yml b/.github/workflows/test_and_build.yml index 6ab9d7504..50bbb5044 100644 --- a/.github/workflows/test_and_build.yml +++ b/.github/workflows/test_and_build.yml @@ -54,6 +54,7 @@ jobs: fi - name: Setup EE version + if: ${{ ! startsWith(github.ref, 'refs/tags/') }} run: | cd "$GITHUB_WORKSPACE" if [[ "$GITHUB_REF" != $DEPLOY_BRANCH ]]; then