Skip to content

Commit 79df9ba

Browse files
committed
Update deploy script to replace symlinks with actual files
1 parent 52dca74 commit 79df9ba

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

script/deploy

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ set -ex
44

55
DEPLOY_BRANCH="gh-pages"
66

7-
jekyll build
8-
97
CURRENT_SHA=$(git log HEAD^..HEAD --format="%h")
108

9+
# GitHub's jekyll appears to treat symlinks differently than local jekyll,
10+
# so we copy all the files that are symlinked by the examples directory
11+
12+
rm examples # remove symlink
13+
mkdir examples
14+
cp -r _includes/examples/ examples/
15+
1116
git checkout -B gh-pages
1217

13-
git add -f _site/
18+
git add -f examples/
1419

1520
git commit -m "[script/deploy] Generate $DEPLOY_BRANCH from $CURRENT_SHA"
1621

0 commit comments

Comments
 (0)