Skip to content

Commit dcff8e3

Browse files
committed
haskellfoundation#23 Make a site deployment per branch
1 parent 4ae3e89 commit dcff8e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/deploy.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ slugify() {
1818
}
1919

2020
deploy() {
21-
git_branch=$(git branch --show-current)
21+
if [[ ! -z "$GITHUB_REF_NAME" ]]; then
22+
git_branch=$GITHUB_REF_NAME
23+
else
24+
git_branch=$(git branch --show-current)
25+
fi
2226
echo "Current git branch is '${git_branch}'."
2327

2428
git config user.name github-actions

0 commit comments

Comments
 (0)