From a580a93510a440e24d999adf7ff4a29861d4ddeb Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Fri, 9 Dec 2022 22:05:15 -0800 Subject: [PATCH] Fixing pypi release deployment script (#2786) * loud * memory * force delete * version --- .github/workflows/deploy-pypi.yml | 3 +++ gradio/version.txt | 2 +- scripts/gh_action_pypi.sh | 5 +++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-pypi.yml b/.github/workflows/deploy-pypi.yml index 6807111403..88c7ac7ba5 100644 --- a/.github/workflows/deploy-pypi.yml +++ b/.github/workflows/deploy-pypi.yml @@ -17,6 +17,9 @@ on: paths: - 'gradio/version.txt' +env: + NODE_OPTIONS: "--max-old-space-size=4096" + jobs: deploy: if: github.event.pull_request.merged == true || github.event.action == '' diff --git a/gradio/version.txt b/gradio/version.txt index 87dbaa157f..2310375a22 100644 --- a/gradio/version.txt +++ b/gradio/version.txt @@ -1 +1 @@ -3.12.0 \ No newline at end of file +3.12.0b6 \ No newline at end of file diff --git a/scripts/gh_action_pypi.sh b/scripts/gh_action_pypi.sh index 61f08ab7d2..1d3714586c 100755 --- a/scripts/gh_action_pypi.sh +++ b/scripts/gh_action_pypi.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e cd "$(dirname ${0})/.." source scripts/helpers.sh @@ -20,6 +21,6 @@ cd .. aws s3 cp gradio/templates/cdn "s3://gradio/${new_version}/" --recursive cp gradio/templates/cdn/index.html gradio/templates/frontend/share.html -rm -r dist/* -rm -r build/* +rm -rf dist/* +rm -rf build/* python3 -m build