Merge pull request #499 from superlinked/update-netflix-article #415
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bundle JSON files | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
bundle: | |
if: ${{ github.repository == 'superlinked/VectorHub' }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.12' | |
- uses: getsentry/[email protected] | |
id: venv | |
with: | |
python-version: '3.12' | |
cache-dependency-path: | | |
docs/tool/vdb_table/requirements.txt | |
install-cmd: pip install -r docs/tools/vdb_table/requirements.txt | |
- name: Generate bundle | |
id: bundle | |
run: | | |
python docs/tools/vdb_table/data_utils.py json_to_bundle -dd "docs/tools/vdb_table/data/*" | |
- id: 'auth' | |
uses: 'google-github-actions/auth@v2' | |
with: | |
workload_identity_provider: 'projects/903342166386/locations/global/workloadIdentityPools/github-pool/providers/github-provider' | |
service_account: 'vectorhub-github-action-sa@superlinked-vectorhub.iam.gserviceaccount.com' | |
- id: 'upload-bundle' | |
uses: 'google-github-actions/upload-cloud-storage@v2' | |
with: | |
path: './bundle.json' | |
destination: 'vectorhub-bundle' | |
- id: 'upload-schema' | |
uses: 'google-github-actions/upload-cloud-storage@v2' | |
with: | |
path: 'docs/tools/vdb_table/vendor.schema.json' | |
destination: 'vectorhub-bundle' |