docs: regenerate example viewers with view filters + source doc dropdown #10
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 demos to GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - examples/ftx/output/graph.html | |
| - examples/epstein/output/graph.html | |
| - examples/transformers/output/graph.html | |
| - pages/** | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Assemble site | |
| run: | | |
| mkdir -p _site/ftx _site/epstein _site/transformers | |
| cp pages/index.html _site/ | |
| cp examples/ftx/output/graph.html examples/ftx/output/entity_descriptions.json examples/ftx/output/communities.json _site/ftx/ 2>/dev/null || true | |
| cp examples/epstein/output/graph.html examples/epstein/output/entity_descriptions.json examples/epstein/output/communities.json _site/epstein/ 2>/dev/null || true | |
| cp examples/transformers/output/graph.html examples/transformers/output/entity_descriptions.json examples/transformers/output/communities.json _site/transformers/ 2>/dev/null || true | |
| - uses: actions/configure-pages@v5 | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: _site | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |