Skip to content

JSON-Schema: Makes version not required #19

JSON-Schema: Makes version not required

JSON-Schema: Makes version not required #19

Workflow file for this run

# SPDX-FileCopyrightText: 2021 - 2024 Robin Vobruba <[email protected]>
#
# 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