Skip to content

Commit

Permalink
Update convert-notebooks.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cudeso authored Nov 24, 2024
1 parent 478578c commit 0da266e
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/convert-notebooks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Convert Jupyter Notebooks to HTML
name: Convert MISP playbooks and deploy to GitHub Pages

on:
push:
Expand All @@ -9,25 +9,24 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
python-version: '3.x'

- name: Install dependencies
run: |
pip install jupyter nbconvert
- name: Install nbconvert
run: pip install nbconvert

- name: Convert notebooks to HTML
- name: Convert Notebooks to HTML
run: |
mkdir -p docs
jupyter nbconvert --to html misp-playbooks/*.ipynb --output-dir docs
mkdir -p output
jupyter nbconvert --to html misp-playbooks/*.ipynb --output-dir output
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
publish_dir: output

0 comments on commit 0da266e

Please sign in to comment.