Skip to content

Commit a20308e

Browse files
authored
Merge pull request #4 from martinRenou/add_lite
Add lite deployment
2 parents f69cb8a + ec01d37 commit a20308e

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,25 @@ jobs:
1717
- name: Checkout source
1818
uses: actions/checkout@v4
1919

20-
- name: Setup Node
21-
uses: actions/setup-node@v4
20+
- name: Install mamba
21+
uses: mamba-org/setup-micromamba@v1
2222
with:
23-
node-version: 20
24-
cache: npm
23+
micromamba-version: '1.5.8-0'
24+
environment-file: build-environment.yml
25+
cache-environment: true
2526

2627
- name: Install dependencies
28+
shell: bash -l {0}
2729
run: npm ci
2830

2931
- name: Build slides
32+
shell: bash -l {0}
3033
run: npm run build
3134

35+
- name: Build the JupyterLite site
36+
shell: bash -l {0}
37+
run: jupyter lite build --contents litecontent --output-dir dist/lite
38+
3239
- name: Upload build output
3340
uses: actions/upload-pages-artifact@v3
3441
with:

build-environment.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: build-env
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- nodejs
6+
- python
7+
- pip
8+
- jupyter_server
9+
- jupyterlite-core >=0.6
10+
- jupyterlite-xeus >=4

environment.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: xeus-wasm
2+
channels:
3+
- https://prefix.dev/emscripten-forge-dev
4+
- https://prefix.dev/conda-forge
5+
dependencies:
6+
- xeus-python
7+
- jupytergis-lite

litecontent/test.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)