feat: add interventiontype to properties #30
This file contains hidden or 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: Generate Public Ontology Docs | |
| on: | |
| push: | |
| paths: | |
| - 'src/ontology/arema-ontology.ttl' | |
| - '.github/workflows/docs.yml' | |
| jobs: | |
| build-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Prepare clean public and data directories | |
| run: | | |
| rm -rf public data docs/public | |
| mkdir -p public data | |
| chmod -R 777 public data | |
| cp src/ontology/arema-ontology.ttl data/ | |
| echo "BASEURL=/$(basename $GITHUB_REPOSITORY)" > .env | |
| chmod 666 .env | |
| - name: Run Skohub Vocabs Docker | |
| run: | | |
| docker run --rm \ | |
| -v ${{ github.workspace }}/public:/app/public \ | |
| -v ${{ github.workspace }}/data:/app/data \ | |
| -v ${{ github.workspace }}/.env:/app/.env \ | |
| skohub/skohub-vocabs-docker:latest | |
| rm -rf docs/* | |
| cp -r public/* docs/ | |
| - name: Commit updated docs | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add docs | |
| git diff --cached --quiet || git commit -m "Update docs via skohub-vocabs" | |
| git push | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |