From 3a746899c869474cd3d79389870b5b98982463c1 Mon Sep 17 00:00:00 2001 From: Abubakar Abid Date: Mon, 13 Jun 2022 13:25:35 -0700 Subject: [PATCH] trying again (#1554) --- .github/workflows/deploy-pypi.yml | 4 ++++ gradio/version.txt | 2 +- scripts/gh_action_pypi.sh | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-pypi.yml b/.github/workflows/deploy-pypi.yml index fc227be744..3cad8485a2 100644 --- a/.github/workflows/deploy-pypi.yml +++ b/.github/workflows/deploy-pypi.yml @@ -36,6 +36,10 @@ jobs: version: 6.32.11 - name: Install pip run: python -m pip install pip wheel + - name: Configure AWS + run: | + export AWS_ACCESS_KEY_ID=${{ secrets.AWSACCESSKEYID }} + export AWS_SECRET_ACCESS_KEY=${{ secrets.AWSSECRETKEY }} - name: Build pypi package run: scripts/gh_action_pypi.sh - name: Publish package diff --git a/gradio/version.txt b/gradio/version.txt index 10f388e69a..6d04bddce4 100644 --- a/gradio/version.txt +++ b/gradio/version.txt @@ -1 +1 @@ -3.0.13b102 +3.0.13b103 diff --git a/scripts/gh_action_pypi.sh b/scripts/gh_action_pypi.sh index c84167d63b..c36e29fb43 100755 --- a/scripts/gh_action_pypi.sh +++ b/scripts/gh_action_pypi.sh @@ -4,6 +4,7 @@ if [ -z "$(ls | grep CONTRIBUTING.md)" ]; then exit -1 else set -e + aws configure list 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 @@ -16,7 +17,6 @@ else GRADIO_VERSION=$new_version pnpm build:cdn cd .. echo "Before AWS" - aws configure list 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