VOWL 1 #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build GitHub Pages | |
on: | |
push: | |
branches: main | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: pages | |
cancel-in-progress: false | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Setup Java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Convert to VOWL | |
run: | | |
wget https://github.com/VisualDataWeb/OWL2VOWL/archive/refs/tags/0.3.7.tar.gz -O owl2vowl.tgz | |
unzip owl2vowl.zip owl2vowl.jar | |
java -jar owl2vowl.jar -file test.ttl -output test.vowl.json | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v2 | |
# Creates, uploads artifact `$github-pages`, single `tgz` file (constraints: size, links, permissions) | |
# :name = github-pages | |
# :path = _site/ | |
# :retention-days = 1 | |
# | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
environment: | |
name: GitHub Pages Environment | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 | |