Skip to content

Move chatbot client and automatically deploy it in CI #399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/actions-gh-pages@v3.5.0
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
Loading