mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-06 12:30:29 +08:00
parent
b808616d49
commit
6025cbe0c8
9
.github/workflows/previews-deploy.yml
vendored
9
.github/workflows/previews-deploy.yml
vendored
@ -82,7 +82,8 @@ jobs:
|
||||
id: set_tarball_name
|
||||
run: |
|
||||
tar_gz_file=$(find ./js-client-tarball -maxdepth 1 -type f -name "*.tgz" -print -quit)
|
||||
echo "tarball_name=$tar_gz_file" >> $GITHUB_OUTPUT
|
||||
echo "tarball_path=$tar_gz_file" >> $GITHUB_OUTPUT
|
||||
echo "tarball_name=$(basename $tar_gz_file)" >> $GITHUB_OUTPUT
|
||||
- name: Upload JS Client Tarball to S3
|
||||
id: upload_js_tarball
|
||||
continue-on-error: true
|
||||
@ -90,7 +91,7 @@ jobs:
|
||||
export AWS_ACCESS_KEY_ID=${{ secrets.NPM_PREVIEWS_AWS_S3_ACCESS_KEY }}
|
||||
export AWS_SECRET_ACCESS_KEY=${{ secrets.NPM_PREVIEWS_AWS_S3_SECRET_ACCESS_KEY }}
|
||||
export AWS_DEFAULT_REGION=us-east-1
|
||||
aws s3 cp $tarball_name s3://gradio-npm-previews/${{ needs.changes.outputs.sha }}/${{ steps.set_tarball_name.outputs.tarball_name }}
|
||||
aws s3 cp ${{ steps.set_tarball_name.outputs.tarball_path }} s3://gradio-npm-previews/${{ needs.changes.outputs.sha }}/
|
||||
echo "js_tarball_url=https://gradio-npm-previews.s3.amazonaws.com/${{ steps.set_tarball_name.outputs.tarball_name }}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Install Hub Client Library
|
||||
@ -102,7 +103,11 @@ 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
|
||||
<<<<<<< HEAD
|
||||
run: mkdir -p demo/all_demos && mv demo/* demo/all_demos/
|
||||
=======
|
||||
run: mkdir -p demo/all_demos && mv demo demo/all_demos
|
||||
>>>>>>> main
|
||||
- name: Upload demo to spaces
|
||||
if: github.event.workflow_run.event == 'pull_request'
|
||||
id: upload-demo
|
||||
|
5
.github/workflows/storybook-deploy.yml
vendored
5
.github/workflows/storybook-deploy.yml
vendored
@ -75,6 +75,7 @@ jobs:
|
||||
with:
|
||||
ref: ${{ needs.changes.outputs.source_branch }}
|
||||
repository: ${{ needs.changes.outputs.source_repo }}
|
||||
fetch-depth: 0
|
||||
- name: dowload storybook artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
@ -116,7 +117,3 @@ jobs:
|
||||
pr_number: ${{ needs.changes.outputs.pr_number }}
|
||||
message: |
|
||||
storybook~failure~https://github.com/gradio-app/gradio/actions/runs/${{github.run_id}}/
|
||||
|
||||
# visual~success~${{ needs.chromatic-deployment.outputs.changes }}~${{ needs.chromatic-deployment.outputs.errors }}~${{ needs.chromatic-deployment.outputs.build_url }}
|
||||
|
||||
# visual~failure~0~0~https://github.com/gradio-app/gradio/actions/runs/${{github.run_id}}/
|
||||
|
Loading…
x
Reference in New Issue
Block a user