Skip to content

Commit

Permalink
Move chatbot client and automatically deploy it in CI (#399)
Browse files Browse the repository at this point in the history
* Automatically deploy chatbot

* Fix CI
  • Loading branch information
oeway authored Jun 4, 2024
1 parent 492ead2 commit 681bae5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 2,812 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/build-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
build:
Expand Down Expand Up @@ -39,7 +40,7 @@ jobs:
name: built-output
path: ./dist

deploy-plugin:
deploy:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
Expand All @@ -49,6 +50,15 @@ jobs:
with:
name: built-output
path: ./dist
# download the static files from https://github.com/bioimage-io/bioimageio-chatbot/archive/refs/heads/main.zip
# then extract the files under bioimageio_chatbot/static and store it under dist/chat
- name: Download and extract static files
run: |
curl -LOk https://github.com/bioimage-io/bioimageio-chatbot/archive/refs/heads/main.zip
unzip main.zip
mkdir -p dist/chat
cp -r bioimageio-chatbot-main/bioimageio_chatbot/static/* dist/chat
rm -rf main.zip bioimageio-chatbot-main
- name: Deploy to GitHub Pages
uses: peaceiris/[email protected]
env:
Expand Down
187 changes: 0 additions & 187 deletions public/chat/bioimage-model-zoo-extension.imjoy.html

This file was deleted.

98 changes: 0 additions & 98 deletions public/chat/imagej-js-extension.imjoy.html

This file was deleted.

Loading

0 comments on commit 681bae5

Please sign in to comment.