@@ -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+
0 commit comments