* update docs

* fix things and add cos

* asd

* asd
This commit is contained in:
pngwn 2024-08-06 21:35:21 +01:00 committed by GitHub
parent 3efa6dbdd1
commit 6ec704db31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
name: "previews-build"
on:
workflow_dispatch:
pull_request:
env:
@ -31,7 +32,7 @@ jobs:
name: "previews-build"
runs-on: ubuntu-22.04
needs: changes
if: needs.changes.outputs.should_run == 'true'
if: needs.changes.outputs.should_run == 'true' || (github.ref_name == 'main' && github.repository == 'gradio-app/gradio')
steps:
- uses: actions/checkout@v4
- name: install dependencies
@ -68,7 +69,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: all_demos
path: demo/all_demos
path: demo
- name: Create JS client tarball
id: create_js_tarball
continue-on-error: true

View File

@ -103,7 +103,7 @@ jobs:
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: make dirs
run: mkdir -p demo/all_demos && mv all_demos/* demo/all_demos/
run: mkdir -p demo && mv all_demos/* demo/
- name: Upload demo to spaces
if: github.event.workflow_run.event == 'pull_request'
id: upload-demo