Skip to content

Commit

Permalink
Fix docbot deployment (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwillchen authored Aug 25, 2024
1 parent ca3a947 commit ad9cdd9
Show file tree
Hide file tree
Showing 3 changed files with 375 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ jobs:
path: .cache
restore-keys: |
docs-bot-
# install uv
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- run: |
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
Expand Down
5 changes: 1 addition & 4 deletions ai/docbot/deploy_to_hf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,13 @@ if [ ! -d "$DEST_PATH" ]; then
mkdir -p "$DEST_PATH"
fi

# Build the docs index
cd ai/docbot && uv run docs_index.py --build-index && cd -

# Get the path of this script which is the demo dir.
DEMO_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

cp -R "$DEMO_DIR/" "$DEST_PATH"
echo "Demo files have been copied to $DEST_PATH"

cd "$DEST_PATH/docbot"
cd "$DEST_PATH"
echo "Changed directory to $DEST_PATH"

git init
Expand Down
Loading

0 comments on commit ad9cdd9

Please sign in to comment.