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 4ae3e89 commit dcff8e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ slugify() {
}

deploy() {
git_branch=$(git branch --show-current)
if [[ ! -z "$GITHUB_REF_NAME" ]]; then
git_branch=$GITHUB_REF_NAME
else
git_branch=$(git branch --show-current)
fi
echo "Current git branch is '${git_branch}'."

git config user.name github-actions
Expand Down

0 comments on commit dcff8e3

Please sign in to comment.