Skip to content

Merge pull request #57 from SpikeInterface/alejoe91-patch-1 #2

Merge pull request #57 from SpikeInterface/alejoe91-patch-1

Merge pull request #57 from SpikeInterface/alejoe91-patch-1 #2

Workflow file for this run

name: Deploy probe viewer to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch: # Allow manual trigger
# Sets permissions of the GITHUB_TOKEN
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: apps/probe-viewer/package-lock.json
- name: Build probe viewer
# Reads probe JSONs from this repo, generates the manifest, and runs vite build.
run: uv run apps/probe-viewer/build.py
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
# The built app is the entire site, so the dist directory is the artifact root.
uses: actions/upload-pages-artifact@v3
with:
path: apps/probe-viewer/dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4