Skip to content

Commit

Permalink
Update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
trungleduc committed Mar 5, 2024
1 parent ed83fee commit f49cfe4
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 79 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,65 @@ jobs:
- uses: actions/checkout@v3
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1

build-lite:
name: Build JupyterLite
needs: integration-tests
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Conda environment with Micromamba
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.5.5-0'
environment-name: build-env
create-args: >-
python=3.10
pip
jupyterlite-core>=0.2.0,<0.3.0
jupyterlite-xeus>=0.1.2,<0.2
- name: Download extension package
uses: actions/download-artifact@v3
with:
name: extension-artifacts

- name: Install the extension
shell: bash -l {0}
run: |
set -eux
cp ./jupytercad_core/dist/jupytercad*.whl ./jupytercad_lab/dist/jupytercad*.whl ./jupytercad_app/dist/jupytercad*.whl .
python -m pip install jupytercad*.whl
- name: Build the lite site
shell: bash -l {0}
working-directory: lite
run: |
set -eux
mkdir -p content && cp ../examples/test.jcad ./content
jupyter lite build --contents content --output-dir dist
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./lite/dist

deploy:
needs: build-lite
if: github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
68 changes: 0 additions & 68 deletions .github/workflows/deploy.yml

This file was deleted.

4 changes: 1 addition & 3 deletions examples/test.jcad
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@
}
}
],
"options": {
"foo": 1
},
"options": {},
"metadata": {},
"outputs": {}
}
8 changes: 0 additions & 8 deletions lite/build-environment.yml

This file was deleted.

0 comments on commit f49cfe4

Please sign in to comment.