From ec01d37107cdb23a3388eb60ff6aeca3b065f72f Mon Sep 17 00:00:00 2001 From: martinRenou Date: Thu, 18 Sep 2025 16:16:52 +0200 Subject: [PATCH] Add lite deployment --- .github/workflows/deploy.yml | 15 +++++++++++---- build-environment.yml | 10 ++++++++++ environment.yml | 7 +++++++ litecontent/test.txt | 0 4 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 build-environment.yml create mode 100644 environment.yml create mode 100644 litecontent/test.txt diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4fc7135..aa41472 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,18 +17,25 @@ jobs: - name: Checkout source uses: actions/checkout@v4 - - name: Setup Node - uses: actions/setup-node@v4 + - name: Install mamba + uses: mamba-org/setup-micromamba@v1 with: - node-version: 20 - cache: npm + micromamba-version: '1.5.8-0' + environment-file: build-environment.yml + cache-environment: true - name: Install dependencies + shell: bash -l {0} run: npm ci - name: Build slides + shell: bash -l {0} run: npm run build + - name: Build the JupyterLite site + shell: bash -l {0} + run: jupyter lite build --contents litecontent --output-dir dist/lite + - name: Upload build output uses: actions/upload-pages-artifact@v3 with: diff --git a/build-environment.yml b/build-environment.yml new file mode 100644 index 0000000..3c090ae --- /dev/null +++ b/build-environment.yml @@ -0,0 +1,10 @@ +name: build-env +channels: + - conda-forge +dependencies: + - nodejs + - python + - pip + - jupyter_server + - jupyterlite-core >=0.6 + - jupyterlite-xeus >=4 diff --git a/environment.yml b/environment.yml new file mode 100644 index 0000000..d6ea5be --- /dev/null +++ b/environment.yml @@ -0,0 +1,7 @@ +name: xeus-wasm +channels: + - https://prefix.dev/emscripten-forge-dev + - https://prefix.dev/conda-forge +dependencies: + - xeus-python + - jupytergis-lite diff --git a/litecontent/test.txt b/litecontent/test.txt new file mode 100644 index 0000000..e69de29