Ci security tweaks take seventy three (#9017)

* asd

* asd

* asd

* asd
This commit is contained in:
pngwn 2024-08-06 00:29:24 +01:00 committed by GitHub
parent b808616d49
commit 6025cbe0c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 6 deletions

View File

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

View File

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