mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-23 11:39:17 +08:00
run deploy scripts from main (#8939)
This commit is contained in:
parent
600c97c807
commit
00dcd1084c
5
.github/workflows/deploy-spaces.yml
vendored
5
.github/workflows/deploy-spaces.yml
vendored
@ -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
|
||||
|
1
.github/workflows/deploy-website.yml
vendored
1
.github/workflows/deploy-website.yml
vendored
@ -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 }}
|
||||
|
2
.github/workflows/test-python.yml
vendored
2
.github/workflows/test-python.yml
vendored
@ -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:
|
||||
|
2
.github/workflows/tests-js.yml
vendored
2
.github/workflows/tests-js.yml
vendored
@ -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 }}"
|
||||
|
Loading…
Reference in New Issue
Block a user