-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.23 KB
/
build.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
name: Build and deploy to GitHub Pages
on:
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
env:
PYTHON_VERSION: "3.11"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Use Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install pyLODE
run: pip install -r requirements.txt
- name: Build documentation
run: |
mkdir -p dist/img
pylode -p supermodel -o dist/exem.html exem.ttl
cp dist/exem.html dist/index.html
cp exem.ttl dist/exem.ttl
cp img/Overview.svg dist/img/Overview.svg
- name: Upload UI artifacts
uses: actions/upload-pages-artifact@v2
with:
path: dist/
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2