Skip to content

Commit

Permalink
Add ontology deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv committed Jul 29, 2024
1 parent c105f0e commit 0930eaa
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ jobs:
- run: mkdocs build -d site/${{ env.RELEASE_VERSION }}
- run: mvn javadoc:javadoc

- name: Find Ontology Version
run: echo "$(grep 'versionIRI' iguana.owx | grep -Po '[0-9]+.[0-9]+.[0-9]+')"
id: find_ontology_version

- name: 'Upload artifact'
uses: actions/upload-artifact@v4
with:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,23 @@ jobs:
publish_dir: ./javadoc/${{ env.RELEASE_VERSION }}/apidocs
destination_dir: ./javadoc/latest

- name: Find Ontology Version
run: echo "ONTOLOGY_VERSION=$(grep 'versionIRI' iguana.owx | grep -Po '[0-9]+.[0-9]+.[0-9]+')" >> $GITHUB_OUTPUT
id: find_ontology_version

- name: Deploy Ontology
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./schema/
destination_dir: ./ontology/${{ steps.find_ontology_version.outputs.ONTOLOGY_VERSION }}/
- name: Deploy Ontology
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./schema/
destination_dir: ./ontology/


deploy_gh_release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0930eaa

Please sign in to comment.