-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added continous deployment to gh-pages
- Loading branch information
1 parent
2cb8b5b
commit a2d5dd9
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Deploy on GitHub Pages | ||
on: | ||
push: | ||
branches: [master] | ||
|
||
permissions: | ||
contents: write | ||
|
||
|
||
jobs: | ||
deploy-on-ghpages: | ||
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install EMMOntoPy | ||
run: | | ||
pip install --upgrade pip | ||
pip install EMMOntoPy | ||
- name: Create squashed and inferred ontology | ||
run: | | ||
mkdir build | ||
ontoconvert -saw --base-iri "https://w3id.org/emmo#" --iri "https://w3id.org/emmo" microstructure.ttl build/microstructure.ttl | ||
ontoconvert -saw -i --base-iri "https://w3id.org/emmo#" --iri "https://w3id.org/emmo" microstructure.ttl build/microstructure-inferred.ttl | ||
- name: Deploy to GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: build | ||
branch: gh-pages |