forked from OPEN-NEXT/OKH-LOSH
-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (51 loc) · 1.75 KB
/
pages.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
62
# SPDX-FileCopyrightText: 2021 - 2024 Robin Vobruba <hoijui.quaero@gmail.com>
#
# SPDX-License-Identifier: Unlicense
name: Generate RDF Visualizations
on:
push:
branches: [master]
release:
types: [published]
jobs:
pages:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
env:
REPOS_DIR: build
ONT_VIZ_REPO: build/ontology-visualization
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Create build dir for repo checkout
run: mkdir ${{ env.REPOS_DIR }}
- name: Check out the ontology-visualization repo
uses: actions/checkout@v4
with:
repository: hoijui/ontology-visualization
path: ${{ env.ONT_VIZ_REPO }}
- name: Setup Python 3
uses: actions/setup-python@v4
with:
python-version: '3.x' # Version range or exact version of a Python version to use
cache: 'pip'
- name: Install our Python requirements
run: |
# For Ontology (RDF) visualization (as visual graphs)
pip install -r "${{ env.ONT_VIZ_REPO }}/requirements.txt"
# For JSON-Schema to Markdown & HTML conversion
run/gen_schema_doc --install-requirements
- name: Document our JSON-Schemas
run: run/gen_schema_doc
- name: Visualize our RDF
run: run/visualize
- name: GitHub bug workaround
# Without this, GitHub thinks this is supposed to be a submodule,
# but because it is not in .gitmodules,
# GH errors-out :/
run: rm -Rf "${{ env.ONT_VIZ_REPO }}"
- name: Deploy to pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: public