-
Notifications
You must be signed in to change notification settings - Fork 8
61 lines (58 loc) · 1.8 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
56
57
58
59
60
61
name: Lite Deploy
on:
push:
branches:
- master
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.10'
- name: Install the dependencies
run: |
python -m pip install -U pip setuptools jupyterlab==4.0.7 jupyterlite==0.2.3 jupyterlite-pyodide-kernel==0.2.1
python -m pip install -e .
jupyter labextension develop . --overwrite
- name: Build the JupyterLite site
run: |
mkdir -p ./docs/files
cp ./samples/beam.vtk ./docs/files/
cp ./samples/cow.vtp ./docs/files/
cp ./samples/diskout-stream-binary-zlib.vtp ./docs/files/
cp ./samples/piston.vtu ./docs/files/
cp ./samples/mesh/abaqus.inp ./docs/files/
cp ./samples/mesh/ansys_mesh.msh ./docs/files/
cp ./samples/mesh/gmsh_mesh.msh ./docs/files/
cp ./samples/mesh/NETGEN_mesh.vol ./docs/files/
cd docs
jupyter lite build
cp -R ./_output/extensions ./_output/lab
- name: Upload (dist)
uses: actions/upload-artifact@v2
with:
name: jupyterview-demo-dist-${{ github.run_number }}
path: ./docs/_output
deploy:
if: github.ref == 'refs/heads/master'
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- uses: actions/[email protected]
with:
name: jupyterview-demo-dist-${{ github.run_number }}
path: ./dist
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist