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 ab267a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 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 @@ -33,7 +33,6 @@ fi
echo "Building docs for $VERSION_NUMBER"
mike deploy "$VERSION_NUMBER" -F docs/mkdocs.yml -b gh-pages

git stash
git stash -u
git checkout gh-pages
git stash pop

0 comments on commit ab267a6

Please sign in to comment.