Skip to content

Commit

Permalink
gh-pages: also put dist at top level
Browse files Browse the repository at this point in the history
because top level demo needs it
  • Loading branch information
HLS.JS CI committed Aug 15, 2018
1 parent fbba662 commit c083319
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/build-deploy-gh-pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ latest="$root/latest"
stable="$root/stable"
topReadme="$root/README.md"
topDemo="$root/demo"
topDist="$root/dist"
tag=$(git describe --exact-match --tags HEAD 2>/dev/null || echo "")

echo "Cloning current gh-pages..."
Expand Down Expand Up @@ -38,6 +39,8 @@ if [ ! -z "$tag" ] && [[ $tag == v* ]]; then
cp -r "$root/$id" "$stable"
rm -rf "$topDemo"
cp -r "./demo" "$topDemo"
rm -rf "$topDist"
cp -r "./dist" "$topDist"
fi

rm -rf "$latest"
Expand Down

0 comments on commit c083319

Please sign in to comment.