Skip to content

Bump the actions group in /.github/workflows with 2 updates #38

Bump the actions group in /.github/workflows with 2 updates

Bump the actions group in /.github/workflows with 2 updates #38

name: Github Pages
on:
pull_request:
push:
branches:
- main
# cron:
# run every Tuesday at 5am UTC
# - cron: '0 5 * * 2'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up python
id: setup-python
uses: actions/setup-python@v6
with:
python-version: '3.11'
cache: 'pip'
- name: Install requirements
run: pip install -r requirements.txt
- name: Export notebooks
run: |
JUPYTER_CONFIG_DIR=./.jupyter jupyter nbconvert *.ipynb --execute --to html --ExecutePreprocessor.kernel_name=python
- name: Prepare public folder
id: folder
run: |
cp *.html docs
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: docs
destination: docs/_site
- name: Setup Pages
id: pages
uses: actions/configure-pages@v6
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: docs
deploy:
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5