Persist SlidePanel panelWidth to localStorage (#132) #20
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: Deploy GitHub Pages | |
on: | |
push: | |
branches: ["master"] | |
paths: | |
- "packages/components/**" | |
- "apps/hyparquet-demo/**" | |
- "apps/hightable-demo/**" | |
- ".github/workflows/deploy_pages.yml" | |
- 'package.json' | |
workflow_dispatch: | |
jobs: | |
# Build job | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Build components package and demo apps | |
run: | | |
npm i | |
npm run build -w @hyparam/components | |
npm run build -w hyparquet-demo | |
npm run build -w hightable-demo | |
- name: Move the build outputs to a folder | |
run: | | |
mkdir -p build_outputs_folder/apps | |
echo "<h1 id="hyparam">Hyperparam</h1>" > build_outputs_folder/index.html | |
echo "<ul>" >> build_outputs_folder/index.html | |
echo "<li><a href="./apps/hyparquet-demo">hyparquet demo</a></li>" >> build_outputs_folder/index.html | |
echo "<li><a href="./apps/hightable-demo">hightable demo</a></li>" >> build_outputs_folder/index.html | |
echo "</ul>" >> build_outputs_folder/index.html | |
echo "<h1 id="hyparam">Hyperparam</h1>" > build_outputs_folder/apps/index.html | |
echo "<ul>" >> build_outputs_folder/apps/index.html | |
echo "<li><a href="./hyparquet-demo">hyparquet demo</a></li>" >> build_outputs_folder/apps/index.html | |
echo "<li><a href="./hightable-demo">hightable demo</a></li>" >> build_outputs_folder/apps/index.html | |
echo "</ul>" >> build_outputs_folder/apps/index.html | |
mv apps/hyparquet-demo/dist build_outputs_folder/apps/hyparquet-demo | |
mv apps/hightable-demo/dist build_outputs_folder/apps/hightable-demo | |
- 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 |