-
Notifications
You must be signed in to change notification settings - Fork 3
119 lines (116 loc) · 4.45 KB
/
Copy pathdeploy_pages.yml
File metadata and controls
119 lines (116 loc) · 4.45 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: Deploy GitHub Pages
on:
push:
branches: ["master"]
workflow_dispatch:
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v6
- name: Build hightable demo
working-directory: hightable
run: |
npm i
npm run build
- name: Build hyparquet demo
working-directory: hyparquet
run: |
npm i
npm run build
- name: Build icebird demo
working-directory: icebird
run: |
npm i
npm run build
- name: Build squirreling demo
working-directory: squirreling
run: |
npm i
npm run build
- name: Build squirreling-gis demo
working-directory: squirreling-gis
run: |
npm i
npm run build
- name: Build hypgrep demo
working-directory: hypgrep
run: |
npm i
npm run build
- name: Build hypvector demo
working-directory: hypvector
run: |
npm i
npm run build
- name: Build hypstore demo
working-directory: hypstore
run: |
npm i
npm run build
- name: Build iceberg-hypgrep demo
working-directory: iceberg-hypgrep
run: |
npm i
npm run build
- name: Build iceberg-auth demo
working-directory: iceberg-auth
env:
VITE_AWS_REGION: ${{ vars.VITE_AWS_REGION }}
VITE_COGNITO_DOMAIN: ${{ vars.VITE_COGNITO_DOMAIN }}
VITE_COGNITO_CLIENT_ID: ${{ vars.VITE_COGNITO_CLIENT_ID }}
VITE_COGNITO_USER_POOL_ID: ${{ vars.VITE_COGNITO_USER_POOL_ID }}
VITE_COGNITO_IDENTITY_POOL_ID: ${{ vars.VITE_COGNITO_IDENTITY_POOL_ID }}
VITE_ALLOWED_EMAIL: ${{ vars.VITE_ALLOWED_EMAIL }}
VITE_S3_BUCKET: ${{ vars.VITE_S3_BUCKET }}
VITE_S3_TABLE_PREFIX: ${{ vars.VITE_S3_TABLE_PREFIX }}
VITE_BEDROCK_MODEL_ID: ${{ vars.VITE_BEDROCK_MODEL_ID }}
run: |
npm i
npm run build
- name: Move the build outputs to a folder
run: |
mkdir -p build_outputs_folder
echo "<h1 id="hyparam">Hyperparam</h1>" > build_outputs_folder/index.html
echo "<ul>" >> build_outputs_folder/index.html
echo "<li><a href="./hyparquet">hyparquet demo</a></li>" >> build_outputs_folder/index.html
echo "<li><a href="./hightable">hightable demo</a></li>" >> build_outputs_folder/index.html
echo "<li><a href="./icebird">icebird demo</a></li>" >> build_outputs_folder/index.html
echo "<li><a href="./iceberg-hypgrep">iceberg-hypgrep demo</a></li>" >> build_outputs_folder/index.html
echo "<li><a href="./squirreling">squirreling demo</a></li>" >> build_outputs_folder/index.html
echo "<li><a href="./squirreling-gis">squirreling-gis demo</a></li>" >> build_outputs_folder/index.html
echo "<li><a href="./hypgrep">hypgrep demo</a></li>" >> build_outputs_folder/index.html
echo "<li><a href="./hypvector">hypvector demo</a></li>" >> build_outputs_folder/index.html
echo "<li><a href="./hypstore">hypstore demo</a></li>" >> build_outputs_folder/index.html
echo "</ul>" >> build_outputs_folder/index.html
mv hyparquet/dist build_outputs_folder/hyparquet
mv hightable/dist build_outputs_folder/hightable
mv icebird/dist build_outputs_folder/icebird
mv iceberg-hypgrep/dist build_outputs_folder/iceberg-hypgrep
mv iceberg-auth/dist build_outputs_folder/iceberg-auth
mv squirreling/dist build_outputs_folder/squirreling
mv squirreling-gis/dist build_outputs_folder/squirreling-gis
mv hypgrep/dist build_outputs_folder/hypgrep
mv hypvector/dist build_outputs_folder/hypvector
mv hypstore/dist build_outputs_folder/hypstore
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: build_outputs_folder/
# Deploy job
deploy:
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4