Skip to content

Commit

Permalink
haskellfoundation#23 Make a site deployment per branch
Browse files Browse the repository at this point in the history
  • Loading branch information
visortelle committed Dec 29, 2021
1 parent 80ad4af commit ccad054
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"
}
Expand Down

0 comments on commit ccad054

Please sign in to comment.