Skip to content

Change Ontology IRI #13

Change Ontology IRI

Change Ontology IRI #13

Workflow file for this run

name: Workflow Test
on:
pull_request:
branches:
- develop
jobs:
find_version:
name: Find Release Version
runs-on: ubuntu-latest
outputs:
RELEASE_VERSION: ${{ steps.step_find.outputs.RELEASE_VERSION }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
cache: 'maven'
- name: 'Find velease version'
run: echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
id: step_find
deploy_docs:
name: Deploy Documentation
runs-on: ubuntu-latest
needs: find_version
env:
RELEASE_VERSION: ${{ needs.find_version.outputs.RELEASE_VERSION }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
cache: 'maven'
- name: Install lftp
run: |
sudo apt-get update
sudo apt-get install lftp
- name: Find Ontology Version
run: echo "ONTOLOGY_VERSION=$(grep 'versionIRI' schema/iguana.owx | grep -Po '[0-9]+.[0-9]+.[0-9]+')" >> $GITHUB_OUTPUT
id: find_ontology_version
- name: Fetch Ontologies
run: git fetch && git checkout origin/gh-pages ontology/
- run: mkdir -p ontology/${{ steps.find_ontology_version.outputs.ONTOLOGY_VERSION }}
- run: cp schema/iguana.owx ontology/${{ steps.find_ontology_version.outputs.ONTOLOGY_VERSION }}/iguana.owx
- run: cp schema/iguana.owx ontology/iguana.owx
- name: Deploy Ontology to FTP
run: |
lftp -u ${{ secrets.FTP_USERNAME }},${{ secrets.FTP_PASSWORD }} files.dice-research.org << EOF
set cmd:fail-exit yes
set ftp:ssl-protect-data true
cd /vocab
mirror -R --dry-run ontology/. iguana/
bye
EOF