-
Notifications
You must be signed in to change notification settings - Fork 5
57 lines (44 loc) · 1.39 KB
/
ci.yaml
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
name: Build HTML version
on:
push:
branches:
- "**"
jobs:
docker:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-create: false
virtualenvs-in-project: false
installer-parallel: true
- name: Install dependencies
run: poetry install
- name: Install Jupyter
run: pip install jupyterlab sparqlkernel
- name: Install zazuko kernel
run: python -m ipykernel install --user --name=zazuko
- name: Install SPARQL kernel
run: jupyter sparqlkernel install --user zazuko
- name: Build HTML version of the notebook
run: ./run.sh
# Only deploy on GitHub Pages if we are on the "master" branch
- name: Configure CNAME
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: echo jupyter.zazuko.com > html/CNAME
- name: Deploy to GitHub Pages
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: html