Skip to content

Commit b17a18c

Browse files
committed
haskellfoundation#23 Make a site deployment per branch
1 parent 568fabc commit b17a18c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/build-and-deploy.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
set -exo pipefail
44

5-
script_dir=$(dirname "$0")
65
git_repo_root=$(git rev-parse --show-toplevel)
76

87
# replace "/", "#", etc with "-".
98
slugify() {
109
echo "$1" | iconv -c -t ascii//TRANSLIT | sed -E 's/[~^]+/-/g' | sed -E 's/[^a-zA-Z0-9]+/-/g' | sed -E 's/^-+|-+$/-/g' | tr A-Z a-z
1110
}
1211
git_branch=$(slugify $(git rev-parse --abbrev-ref HEAD))
13-
echo "Current git branch is ${git_branch}"
12+
echo "Current git branch is '${git_branch}'"
1413

1514
git config user.name github-actions
1615
git config user.email [email protected]

0 commit comments

Comments
 (0)