add url arg to build (#2674)

This commit is contained in:
Ali Abdalla 2022-11-18 11:24:13 -08:00 committed by GitHub
parent 6798ea38d7
commit b9df6f3804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,8 @@ npm_required
echo "Building the website..."
set -e
cd website/homepage
LATEST_COMMIT=$(git log -1 --format="%H")
npm install
npm run build
npm run build --url=https://gradio-main-build.s3.amazonaws.com/$LATEST_COMMIT/
cd build
python -m http.server