This commit is contained in:
pngwn 2024-08-05 23:57:28 +01:00 committed by GitHub
parent c15c58c4ab
commit 3238b26277
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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