-
Notifications
You must be signed in to change notification settings - Fork 106
52 lines (44 loc) · 1.47 KB
/
json-bundle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Bundle JSON files
on:
push:
branches:
- main
jobs:
bundle:
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'