-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move chatbot client and automatically deploy it in CI (#399)
* Automatically deploy chatbot * Fix CI
- Loading branch information
Showing
6 changed files
with
11 additions
and
2,812 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ on: | |
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
@@ -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' | ||
|
@@ -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: | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.