Skip to content

Commit

Permalink
Add delete to sync step changed build docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Varun-Dutta authored Jul 23, 2024
1 parent 757c7b8 commit 9143fc2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,6 @@ jobs:
cd ..
if [ "$TESTING" = 'true' ]; then
echo "Attempting sync"
if [ -d ./docs ]; then
rm -rf ./docs
fi
aws s3 cp s3://updated-documentation-website/website/ ./ --recursive
else
aws s3 sync s3://djl-ai/documentation/nightly .
Expand All @@ -194,9 +191,10 @@ jobs:
export DJL_DISABLE_PROGRESS_BAR=true
if [ "$IS_NEW_VERSION" = "true" ]; then
echo "deploying $VERSION_NUMBER"
mike deploy $VERSION_NUMBER latest
mike deploy $VERSION_NUMBER
mike set-default $VERSION_NUMBER
else
mike deploy 1.0 dev
mike deploy dev
mike set-default dev
fi
git branch
Expand All @@ -209,6 +207,9 @@ jobs:
run: |
cd /home/runner/work/djl/djl
git checkout gh-pages
if [ -d ./docs ]; then
rm -rf ./docs
fi
git branch
pwd
ls
Expand Down

0 comments on commit 9143fc2

Please sign in to comment.