gradio/build_pypi.sh
pngwn 0b018c43a5
Fix ci again again again (#5331)
* fix changelog generation

* fix changelog generation

* fix

* fix script

* fix script
2023-08-24 19:47:17 +01:00

21 lines
581 B
Bash
Executable File

#!/bin/bash
set -e
cd "$(dirname ${0})"
# You should update the version in version.txt before running this script
new_version="$(cat gradio/version.txt)"
GRADIO_VERSION=$new_version
rm -rf gradio/templates/frontend
rm -rf gradio/templates/cdn
pnpm i --frozen-lockfile --ignore-scripts
GRADIO_VERSION=$new_version pnpm build
GRADIO_VERSION=$new_version pnpm build:cdn
aws s3 cp gradio/templates/cdn "s3://gradio/${new_version}/" --recursive --region us-west-2
cp gradio/templates/cdn/index.html gradio/templates/frontend/share.html
rm -rf dist/*
rm -rf build/*
python3 -m build