Skip to content

Switch to hypha as backend #92

Switch to hypha as backend

Switch to hypha as backend #92

name: Update Ontology
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
- name: Setup Robot
run: sh utils/setup-robot.sh
- name: Generate OWL file
run: sh utils/convert-owl.sh # This will produce an output foldere: Use Node.js ${{ matrix.node-version }}
- name: Save build output
uses: actions/upload-artifact@v4
with:
name: built-output
path: ./output
deploy-owl-file:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
steps:
- name: Load saved build output
uses: actions/download-artifact@v4
with:
name: built-output
path: ./output
- name: Deploy to ontology branch
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: ontology
build_dir: output
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}