Skip to content

Commit 51733e3

Browse files
committed
Add jupyterlite deploy
1 parent f35b3da commit 51733e3

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build-deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,32 @@ jobs:
954954
name: rust-tutorials
955955
path: .
956956

957+
build-tskit-explore:
958+
name: Build tskit-explore JupyterLite site
959+
needs: cancel-superseded
960+
runs-on: ubuntu-24.04
961+
steps:
962+
- uses: actions/[email protected]
963+
name: Checkout tskit-explore
964+
with:
965+
ref: main
966+
repository: tskit-dev/tskit-explore
967+
- name: Setup Python
968+
uses: actions/[email protected]
969+
with:
970+
python-version: '3.11'
971+
- name: Install the dependencies
972+
run: |
973+
python -m pip install -r requirements.txt
974+
- name: Build the JupyterLite site
975+
run: |
976+
cp README.md content
977+
jupyter lite build --contents content --output-dir dist
978+
- name: Upload artifact
979+
uses: actions/[email protected]
980+
with:
981+
name: tskit-explore
982+
path: ./dist
957983

958984
deploy:
959985
name: Deploy 🚀 (if on main branch)
@@ -970,6 +996,7 @@ jobs:
970996
- build-tsbrowse-docs
971997
- import-tutorials
972998
- import-rust-tutorial
999+
- build-tskit-explore
9731000
runs-on: ubuntu-24.04
9741001
steps:
9751002
- name: Checkout
@@ -1045,6 +1072,12 @@ jobs:
10451072
with:
10461073
name: rust-tutorials
10471074
path: site/tutorials/rust
1075+
1076+
- name: Download tskit-explore
1077+
uses: actions/[email protected]
1078+
with:
1079+
name: tskit-explore
1080+
path: site/explore
10481081

10491082
- name: Pages config and tweaks
10501083
run: |

0 commit comments

Comments
 (0)