mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
8bbeca0e77
* fix embed * add changeset * fixes * remove final references to cdn * add changeset * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
19 lines
551 B
Bash
Executable File
19 lines
551 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
cd "$(dirname ${0})"
|
|
|
|
# You should update the version in package.json before running this script
|
|
FILE="gradio/package.json"
|
|
new_version=$(python -c "import json; f = open('$FILE', 'r'); data = json.load(f); print(data['version']); f.close();")
|
|
GRADIO_VERSION=$new_version
|
|
|
|
rm -rf gradio/templates/frontend
|
|
pnpm i --frozen-lockfile --ignore-scripts
|
|
GRADIO_VERSION=$new_version pnpm build
|
|
aws s3 cp gradio/templates/frontend "s3://gradio/${new_version}/" --recursive --region us-west-2
|
|
|
|
rm -rf dist/*
|
|
rm -rf build/*
|
|
python3 -m build
|