diff --git a/.github/workflows/deploy-test.yml b/.github/workflows/deploy-test.yml index d4617764..d84c18ba 100644 --- a/.github/workflows/deploy-test.yml +++ b/.github/workflows/deploy-test.yml @@ -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: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 178a84ed..4f3859b0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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