gradio/build_pypi.sh
pngwn 62306d9ed1
unified release process (#4986)
* Implement unified version and release mechanism for all python and javascript packages.

* Update gradio/package.json

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* fix changelog

* fix changelog

* Update js/button/README.md

* Update .github/workflows/generate-changeset.yml

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-21 19:13:21 +01:00

25 lines
581 B
Bash
Executable File

#!/bin/bash
set -e
cd "$(dirname ${0})"
source scripts/helpers.sh
pnpm_required
aws_required
# 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
GRADIO_VERSION=$new_version pnpm build
GRADIO_VERSION=$new_version pnpm build:cdn
aws s3 cp gradio/templates/cdn "s3://gradio/${new_version}/" --recursive
cp gradio/templates/cdn/index.html gradio/templates/frontend/share.html
rm -rf dist/*
rm -rf build/*
python3 -m build