From ccad05457113031f95927d5d8ac0b124284dcc65 Mon Sep 17 00:00:00 2001 From: visortelle Date: Wed, 29 Dec 2021 20:17:12 +0100 Subject: [PATCH] #23 Make a site deployment per branch --- .github/workflows/deploy.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/deploy.sh b/.github/workflows/deploy.sh index a14e72ed..cc8d4980 100755 --- a/.github/workflows/deploy.sh +++ b/.github/workflows/deploy.sh @@ -76,10 +76,8 @@ github_repo_name=$(echo "${github_repo}" | sed 's/^.*\///g') git_head_sha=$(git rev-parse --verify HEAD) if [ "$git_branch" == "$main_git_branch" ]; then - deployment_environment="production" deployment_url="https://${github_repo_owner}.github.io/${github_repo_name}/" else - deployment_environment="qa" deployment_url="https://${github_repo_owner}.github.io/${github_repo_name}/branches/${git_branch}" fi @@ -88,7 +86,7 @@ update_github_deployment_req_data() { { "name": "deployment", "ref": "${git_branch}", - "environment": "${deployment_environment}", + "environment": "github-pages", "payload": "some payload https://xyz.abc", "description": "some description https://abc.xyz" }