Skip to content

Commit 54037a3

Browse files
committed
Revert changes
1 parent 983e4e4 commit 54037a3

File tree

2 files changed

+72
-112
lines changed

2 files changed

+72
-112
lines changed

.github/workflows/build.yml

Lines changed: 69 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -202,71 +202,72 @@ jobs:
202202
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
203203
- uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1
204204

205-
# build-lite:
206-
# name: Build JupyterLite
207-
# needs: build
208-
# runs-on: ubuntu-latest
209-
210-
# steps:
211-
# - name: Checkout
212-
# uses: actions/checkout@v3
213-
214-
# - name: Install Conda environment with Micromamba
215-
# uses: mamba-org/setup-micromamba@v1
216-
# with:
217-
# micromamba-version: '1.5.5-0'
218-
# environment-name: build-env
219-
# create-args: >-
220-
# python=3.10
221-
# pip
222-
# jupyterlite-core
223-
# jupyterlite-xeus
224-
225-
# - name: Download extension package
226-
# uses: actions/download-artifact@v4
227-
# with:
228-
# name: extension-artifacts
229-
230-
# - name: Install the extension
231-
# shell: bash -l {0}
232-
# run: |
233-
# set -eux
234-
# cp ./jupytercad_core/dist/jupytercad*.whl ./jupytercad_lab/dist/jupytercad*.whl ./jupytercad_app/dist/jupytercad*.whl .
235-
# python -m pip install jupytercad*.whl
236-
237-
# - name: Build the lite site
238-
# shell: bash -l {0}
239-
# working-directory: lite
240-
# run: |
241-
# set -eux
242-
# mkdir -p content && cp ../examples/*.jcad ../examples/*.STEP ../examples/*.stl ./content
243-
# jupyter lite build --contents content --output-dir dist
244-
245-
# - name: Upload github-pages artifact
246-
# id: upload-jupyterlite-artifact
247-
# uses: actions/upload-pages-artifact@v3
248-
# with:
249-
# path: ./lite/dist
250-
# retention-days: 30
251-
252-
# - name: Save artifact data
253-
# uses: trungleduc/appsharingspace-pr-comment/.github/actions/save-artifact-link@v2
254-
# with:
255-
# artifact_link: 'https://github.com/${{ github.repository }}/actions/runs/${{github.run_id}}/artifacts/${{ steps.upload-jupyterlite-artifact.outputs.artifact_id }}'
256-
257-
# deploy:
258-
# needs: [integration-tests, build-lite]
259-
# if: github.ref == 'refs/heads/main'
260-
# permissions:
261-
# pages: write
262-
# id-token: write
263-
264-
# environment:
265-
# name: github-pages
266-
# url: ${{ steps.deployment.outputs.page_url }}
267-
268-
# runs-on: ubuntu-latest
269-
# steps:
270-
# - name: Deploy to GitHub Pages
271-
# id: deployment
272-
# uses: actions/deploy-pages@v4
205+
build-lite:
206+
name: Build JupyterLite
207+
needs: build
208+
runs-on: ubuntu-latest
209+
210+
steps:
211+
- name: Checkout
212+
uses: actions/checkout@v3
213+
214+
- name: Install Conda environment with Micromamba
215+
uses: mamba-org/setup-micromamba@v1
216+
with:
217+
micromamba-version: '1.5.5-0'
218+
environment-name: build-env
219+
create-args: >-
220+
python=3.10
221+
pip
222+
jupyterlite-core
223+
jupyterlite-xeus
224+
225+
- name: Download extension package
226+
uses: actions/download-artifact@v4
227+
with:
228+
name: extension-artifacts
229+
230+
- name: Install the extension
231+
shell: bash -l {0}
232+
run: |
233+
set -eux
234+
cp ./jupytercad_core/dist/jupytercad*.whl ./jupytercad_lab/dist/jupytercad*.whl ./jupytercad_app/dist/jupytercad*.whl .
235+
python -m pip install jupytercad*.whl
236+
237+
- name: Build the lite site
238+
shell: bash -l {0}
239+
working-directory: lite
240+
run: |
241+
set -eux
242+
mkdir -p content && cp ../examples/*.jcad ../examples/*.STEP ../examples/*.stl ./content
243+
jupyter lite build --contents content --output-dir dist
244+
245+
- name: Upload github-pages artifact
246+
id: upload-jupyterlite-artifact
247+
uses: actions/upload-pages-artifact@v3
248+
with:
249+
path: ./lite/dist
250+
retention-days: 30
251+
252+
- name: Save artifact data
253+
uses: trungleduc/appsharingspace-pr-comment/.github/actions/save-artifact-link@v2
254+
with:
255+
artifact_link: 'https://github.com/${{ github.repository }}/actions/runs/${{github.run_id}}/artifacts/${{ steps.upload-jupyterlite-artifact.outputs.artifact_id }}'
256+
257+
deploy:
258+
needs: [integration-tests, build-lite]
259+
if: github.ref == 'refs/heads/main'
260+
permissions:
261+
pages: write
262+
id-token: write
263+
264+
environment:
265+
name: github-pages
266+
url: ${{ steps.deployment.outputs.page_url }}
267+
268+
runs-on: ubuntu-latest
269+
steps:
270+
- name: Deploy to GitHub Pages
271+
id: deployment
272+
uses: actions/deploy-pages@v4
273+

.readthedocs.yaml

Lines changed: 3 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,7 @@ version: 2
33
build:
44
os: 'ubuntu-20.04'
55
tools:
6-
python: "3.12"
7-
nodejs: "20"
8-
jobs:
9-
# Install micromamba
10-
pre_create_environment:
11-
# The recommended syntax in the micromamba docs is process substitution.
12-
# RTD's default shell chokes on it, so we're doing it in multiple steps
13-
# instead.
14-
- curl -L micro.mamba.pm/install.sh > /tmp/micromamba-install.sh
15-
- chmod +x /tmp/micromamba-install.sh
16-
# For some reason, SHELL is not set. The install script requires it.
17-
- SHELL=/bin/bash /bin/bash /tmp/micromamba-install.sh
6+
python: 'mambaforge-4.10'
187

19-
# Override the create_environment step (undocumented feature) to create
20-
# multiple environments.
21-
create_environment:
22-
# Pin micromamba
23-
- /bin/bash --login -c "micromamba self-update --version 2.0.5"
24-
# Create the env for building the docs
25-
- /bin/bash --login -c "micromamba env create -n jupytercad-docs -f docs/environment-docs.yml"
26-
# Create the isolated env for building JupyterCAD
27-
- /bin/bash --login -c "micromamba create -n jupytercad-build -c conda-forge nodejs hatch pip python=3.13"
28-
- /bin/bash --login -c "micromamba run -n jupytercad-build pip install 'jupyterlab==4.3' 'datamodel-code-generator>=0.23.0'"
29-
30-
# Override the install step to do nothing - we already created the envs
31-
install:
32-
- "echo 'Skipping! We already have the environments we need.'"
33-
# Before building the docs, build JupyterCAD in its isolated environment,
34-
# then install the wheels into the docs environment.
35-
pre_build:
36-
- /bin/bash --login -c "micromamba run -n jupytercad-build jlpm install"
37-
- /bin/bash --login -c "micromamba run -n jupytercad-build jlpm build"
38-
39-
build:
40-
html:
41-
- |-
42-
/bin/bash --login -c "cd docs && micromamba run -n jupytercad-docs \
43-
python -m sphinx -T -b html -d _build/doctrees -D language=en . \
44-
$READTHEDOCS_OUTPUT/html"
45-
46-
# conda:
47-
# environment: docs/environment.yml
48-
49-
# sphinx:
50-
# configuration: docs/source/conf.py
8+
conda:
9+
environment: docs/environment.yml

0 commit comments

Comments
 (0)