mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
asd (#9015)
This commit is contained in:
parent
c15c58c4ab
commit
3238b26277
5
.github/workflows/previews-deploy.yml
vendored
5
.github/workflows/previews-deploy.yml
vendored
@ -98,11 +98,9 @@ jobs:
|
||||
# temporary, but ensures the script cannot be modified in a PR
|
||||
- name: Get deploy scripts
|
||||
run: |
|
||||
mkdir scripts
|
||||
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
|
||||
|
||||
|
||||
# safe, pulls from main branch
|
||||
- name: Upload demo to spaces
|
||||
if: github.event.workflow_run.event == 'pull_request'
|
||||
id: upload-demo
|
||||
@ -112,7 +110,6 @@ jobs:
|
||||
${{ secrets.SPACES_DEPLOY_TOKEN }} \
|
||||
--gradio-version ${{ needs.changes.outputs.gradio_version }} > url.txt
|
||||
echo "SPACE_URL=$(cat url.txt)" >> $GITHUB_OUTPUT
|
||||
# safe, pulls from main branch
|
||||
- name: Upload Website Demos
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
id: upload-website-demos
|
||||
|
Loading…
Reference in New Issue
Block a user