Skip to content

Merge branch 'main' of https://github.com/EliasTors/MegaTrond #10

Merge branch 'main' of https://github.com/EliasTors/MegaTrond

Merge branch 'main' of https://github.com/EliasTors/MegaTrond #10

Workflow file for this run

name: Convert Jupyter Notebook to Markdown
on:
push:
branches:
- main
jobs:
convert:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nbconvert
- name: Convert Jupyter notebook to Markdown
run: |
jupyter nbconvert --to markdown rapport.ipynb
- name: Rename to README.md
run: mv rapport.md README.md
- name: Commit and push changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add README.md
git add *.png # add this line to also commit any PNG images
git commit -m "Update README.md"
git push
deploy:
needs: convert
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.PAT }}
publish_dir: ./ # or the directory where your markdown files are located