Skip to content

Commit

Permalink
Fixes stash untrack file issue
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu committed Aug 7, 2024
1 parent d3c0a41 commit 170532b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tools/scripts/build-website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ for i in {1..4}; do
versions="$versions, {\"version\":\"v$version\",\"title\":\"v$version\",\"aliases\":[]}"
done
versions="$versions]"
echo "$versions" | jq "." > "$BASE_DIR/../../versions.json"
echo "$versions" | jq "." >"$BASE_DIR/../../versions.json"

VERSION_NUMBER=$1
if [[ "$VERSION_NUMBER" == "" ]]; then
Expand All @@ -32,8 +32,6 @@ fi

echo "Building docs for $VERSION_NUMBER"
mike deploy "$VERSION_NUMBER" -F docs/mkdocs.yml -b gh-pages
rm -f "$BASE_DIR/../../versions.json"

git stash
git checkout gh-pages
git stash pop

0 comments on commit 170532b

Please sign in to comment.