From deef3b7e35a535ef2fb83f10d5c3ec3994c6eda1 Mon Sep 17 00:00:00 2001 From: Ali Abdalla Date: Thu, 19 Sep 2024 00:44:24 +0400 Subject: [PATCH] add lite upload (#9385) --- .github/workflows/previews-deploy.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/previews-deploy.yml b/.github/workflows/previews-deploy.yml index 7510855e259ae..494dfa00bda51 100644 --- a/.github/workflows/previews-deploy.yml +++ b/.github/workflows/previews-deploy.yml @@ -94,7 +94,15 @@ jobs: export AWS_DEFAULT_REGION=us-east-1 aws s3 cp ${{ steps.set_tarball_name.outputs.tarball_path }} s3://gradio-npm-previews/${{ needs.changes.outputs.sha }}/ echo "js_tarball_url=https://gradio-npm-previews.s3.amazonaws.com/${{ needs.changes.outputs.sha }}/${{ steps.set_tarball_name.outputs.tarball_name }}" >> $GITHUB_OUTPUT - + - name: Upload Lite to S3 + id: upload_lite + run: | + export AWS_ACCESS_KEY_ID=${{ secrets.LITE_PREVIEWS_AWS_S3_ACCESS_KEY }} + export AWS_SECRET_ACCESS_KEY=${{ secrets.LITE_PREVIEWS_AWS_S3_SECRET_ACCESS_KEY }} + export AWS_DEFAULT_REGION=us-east-1 + mkdir -p ./gradio-lite-files + tar -xzf ./gradio-lite-${{ needs.changes.outputs.sha }}/gradio-lite-*.tgz -C ./gradio-lite-files + aws s3 cp ./gradio-lite-files/package/ s3://gradio-lite-previews/${{ needs.changes.outputs.sha }}/ --recursive - name: Install Hub Client Library run: pip install huggingface-hub==0.23.2 # temporary, but ensures the script cannot be modified in a PR @@ -147,6 +155,11 @@ jobs: ```bash npm install ${{ needs.deploy.outputs.js_tarball_url }} ``` + + **Use Lite from this PR** + ```html + + ``` comment-spaces-failure: uses: "./.github/workflows/comment-queue.yml" needs: [deploy, changes]