From 3458689bae387a5ef444d4976bc4d9cfce4959b7 Mon Sep 17 00:00:00 2001 From: Val Redchenko Date: Fri, 23 Jan 2026 11:12:17 +0000 Subject: [PATCH] feat: add PyPI links to artifacts, update descriptions, and auto-deploy GH Pages - Add PyPI and GitHub Releases links to backend, agent, and workspace artifacts - Add Windows .exe link to EPU Player - Update backend/agent descriptions to be more functionally descriptive - Reorder links consistently: GitHub Releases, PyPI, then others - Enable automatic GH Pages deployment on push to main when webui/, core/, or docs/ files change Co-Authored-By: Claude Opus 4.5 --- .github/workflows/deploy-webui.yml | 6 ++++++ core/artefacts.json | 22 +++++++++++++++++----- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-webui.yml b/.github/workflows/deploy-webui.yml index d1f1b48..c48aa68 100644 --- a/.github/workflows/deploy-webui.yml +++ b/.github/workflows/deploy-webui.yml @@ -2,6 +2,12 @@ name: Deploy WebUI to GitHub Pages on: workflow_dispatch: + push: + branches: [main] + paths: + - 'webui/**' + - 'core/**' + - 'docs/**' permissions: contents: read diff --git a/core/artefacts.json b/core/artefacts.json index 15bb9da..0b98a17 100644 --- a/core/artefacts.json +++ b/core/artefacts.json @@ -4,15 +4,25 @@ "id": "backend", "label": "SmartEM Backend", "url": "https://github.com/DiamondLightSource/smartem-decisions/pkgs/container/smartem-decisions", - "description": "Docker container image of SmartEM Backend services for use in k8s deploys", - "command": "docker pull ghcr.io/diamondlightsource/smartem-decisions:latest" + "description": "Central controller for SmartEM - handles persistence, messaging, and coordination between microscope agents and ML plugins", + "command": "docker pull ghcr.io/diamondlightsource/smartem-decisions:latest", + "links": [ + { "label": "GitHub Releases", "url": "https://github.com/DiamondLightSource/smartem-decisions/releases" }, + { "label": "PyPI", "url": "https://pypi.org/project/smartem-decisions/" }, + { "label": "Docker", "url": "https://github.com/DiamondLightSource/smartem-decisions/pkgs/container/smartem-decisions" } + ] }, { "id": "agent", "label": "SmartEM Agent", "url": "https://github.com/DiamondLightSource/smartem-decisions/actions/workflows/build_win_smartem_agent.yml", - "description": "SmartEM Agent packaged as a Windows 10 executable (download from workflow artifacts)", - "command": "" + "description": "Bridge between EPU workstations and SmartEM backend - watches EPU filesystem output and relays ML recommendations to microscopes", + "command": "", + "links": [ + { "label": "GitHub Releases", "url": "https://github.com/DiamondLightSource/smartem-decisions/releases" }, + { "label": "PyPI", "url": "https://pypi.org/project/smartem-decisions/" }, + { "label": "Windows .exe", "url": "https://github.com/DiamondLightSource/smartem-decisions/actions/workflows/build_win_smartem_agent.yml" } + ] }, { "id": "frontend", @@ -28,6 +38,7 @@ "description": "CLI tool to automate multi-repo workspace setup", "command": "uvx smartem-workspace --help", "links": [ + { "label": "GitHub Releases", "url": "https://github.com/DiamondLightSource/smartem-devtools/releases" }, { "label": "PyPI", "url": "https://pypi.org/project/smartem-workspace/" } ] }, @@ -39,7 +50,8 @@ "command": "uvx smartem-epuplayer --help", "links": [ { "label": "GitHub Releases", "url": "https://github.com/DiamondLightSource/smartem-devtools/releases" }, - { "label": "PyPI", "url": "https://pypi.org/project/smartem-epuplayer/" } + { "label": "PyPI", "url": "https://pypi.org/project/smartem-epuplayer/" }, + { "label": "Windows .exe", "url": "https://github.com/DiamondLightSource/smartem-devtools/releases" } ] } ]