run deploy scripts from main (#8939)

This commit is contained in:
pngwn 2024-07-31 09:01:57 +01:00 committed by GitHub
parent 600c97c807
commit 00dcd1084c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 2 deletions

View File

@ -114,6 +114,11 @@ jobs:
echo "js_tarball_url=https://gradio-builds.s3.amazonaws.com/${{ needs.changes.outputs.sha }}/$tarball_name" >> $GITHUB_OUTPUT
- name: Install Hub Client Library
run: pip install huggingface-hub==0.23.2
# temporary, but ensures the script cannot be modified in a PR
- name: Get deploy scripts
run: |
curl https://raw.githubusercontent.com/gradio-app/gradio/main/scripts/upload_demo_to_space.py -o scripts/upload_demo_to_space.py
curl https://raw.githubusercontent.com/gradio-app/gradio/main/scripts/upload_website_demos.py -o scripts/upload_website_demos.py
- name: Upload demo to spaces
if: github.event.workflow_run.event == 'pull_request'
id: upload-demo

View File

@ -14,6 +14,7 @@ concurrency:
cancel-in-progress: true
# these variables are not secret and are used to identify the Vercel project
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

View File

@ -15,6 +15,8 @@ concurrency:
env:
NODE_OPTIONS: "--max-old-space-size=4096"
# this is a non-secret secret and provides read access to a set of spaces for testing purposes
# this secret has minimal permissions and only has access to things that can be made public
HF_TOKEN: ${{ secrets.HF_TOKEN }}
jobs:

View File

@ -13,8 +13,6 @@ env:
CI: true
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1"
NODE_OPTIONS: "--max-old-space-size=4096"
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
concurrency:
group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"