Hypstore demo caching resolver and regex grep #96
This file contains hidden or 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: 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 |