diff --git a/gradio/version.txt b/gradio/version.txt index 4653e8bf01..e3d69dfa3c 100644 --- a/gradio/version.txt +++ b/gradio/version.txt @@ -1 +1 @@ -3.0.13b100 +3.0.13b101 diff --git a/scripts/gh_action_pypi.sh b/scripts/gh_action_pypi.sh index 8d6a0a3a78..b21d35ff84 100755 --- a/scripts/gh_action_pypi.sh +++ b/scripts/gh_action_pypi.sh @@ -3,6 +3,7 @@ if [ -z "$(ls | grep CONTRIBUTING.md)" ]; then echo "Please run the script from repo directory" exit -1 else + set -e old_version=$(grep -Po "(?<=version=\")[^\"]+(?=\")" setup.py) read -r new_version < gradio/version.txt sed -i "s/version=\"$old_version\"/version=\"$new_version\"/g" setup.py @@ -14,7 +15,9 @@ else pnpm build GRADIO_VERSION=$new_version pnpm build:cdn cd .. - aws s3 cp gradio/templates/cdn s3://gradio/$new_version/ --recursive # requires aws cli (contact maintainers for credentials) + echo "Before AWS" + aws s3 cp gradio/templates/cdn s3://gradio/$new_version/ --recursive + echo "After AWS" cp gradio/templates/cdn/index.html gradio/templates/frontend/share.html rm -r dist/*