Merge pull request #29 from moritzblum/main #9
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: 'Generate tbox analysis visualization' | |
on: | |
push: | |
branches: | |
- main | |
- separate_abox_tbox | |
jobs: | |
run_ipynb: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: run jupyter notebook | |
run: | | |
pip install notebook rdflib pandas ipython ipywidgets papermill | |
papermill --kernel python3 tbox_analysis_vis.ipynb tbox_analysis_vis_out.ipynb | |
jupyter nbconvert --to html tbox_analysis_vis_out.ipynb | |
mkdir public | |
cp tbox_analysis_vis_out.ipynb public/tbox_analysis_vis.ipynb | |
cp tbox_analysis_vis_out.html public/index.html | |
mv tbox_analysis_vis_out.html public/tbox_analysis_vis.html | |
- name: Deploy to GitHub Pages | |
if: success() | |
uses: crazy-max/ghaction-github-pages@v3 | |
with: | |
target_branch: gh-pages | |
build_dir: public | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Archive current state of ipynb | |
uses: actions/upload-artifact@v4 | |
with: | |
name: tbox_analysis_vis | |
path: public/* |