-
Notifications
You must be signed in to change notification settings - Fork 16
55 lines (52 loc) · 1.55 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Lite Deploy
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install the dependencies
run: |
python -m pip install -U pip setuptools jupyterlab~=3.3 jupyterlite "ipywidgets==7.7.2" ipyleaflet ipyflex plotly cosapp "ipyvuetify==1.8.2" "ipyvue==1.7.0" pandas
python -m pip install .
- name: Build the JupyterLite site
run: |
mkdir -p ./lite/files/
cp ./samples/data.json ./lite/files/
cp ./samples/ticker2.json ./lite/files/
cp ./samples/beam.json ./lite/files/
jupyter app_launcher build ./binder/jupyter_app_launcher/ ./lite
cd lite
jupyter lite build
- name: Upload (dist)
uses: actions/upload-artifact@v4
with:
name: jupyter-app-launcher-demo-dist-${{ github.run_number }}
path: ./lite/_output
deploy:
if: github.ref == 'refs/heads/main'
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
- uses: actions/download-artifact@v4
with:
name: jupyter-app-launcher-demo-dist-${{ github.run_number }}
path: ./dist
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.3
with:
branch: gh-pages
folder: dist